Discussion:
cursor.cc in the duflp
(too old to reply)
Glenn Johansen
2008-11-13 20:26:25 UTC
Permalink
This cc works well in the IDE but does not seem to work when the app is
built into an executable.
I am trying to force a hour glass wait cursor while my form builds, and then
change it back to an arrow.

Anyone know an effective way to do this?

- TIA

- glenn
Bruce Beacham
2008-11-14 09:21:06 UTC
Permalink
Post by Glenn Johansen
This cc works well in the IDE but does not seem to work when the app is
built into an executable.
I am trying to force a hour glass wait cursor while my form builds, and then
change it back to an arrow.
Anyone know an effective way to do this?
I suspect it shouldn't be necessary, but you could try adding
_app.executemessages() to the cursor.cc methods to speed up the change
in the cursor.


Bruce Beacham
Glenn Johansen
2008-11-14 15:27:20 UTC
Permalink
Tried that, but it seem to do the exact opposite, and sets the cursor back
to blinking between busy and arrow...

Any more ideas??
Post by Bruce Beacham
Post by Glenn Johansen
This cc works well in the IDE but does not seem to work when the app is
built into an executable.
I am trying to force a hour glass wait cursor while my form builds, and
then change it back to an arrow.
Anyone know an effective way to do this?
I suspect it shouldn't be necessary, but you could try adding
_app.executemessages() to the cursor.cc methods to speed up the change in
the cursor.
Bruce Beacham
Ronnie MacGregor
2008-11-16 13:20:30 UTC
Permalink
On Thu, 13 Nov 2008 15:26:25 -0500
Post by Glenn Johansen
This cc works well in the IDE but does not seem to work when the app is
built into an executable.
I am trying to force a hour glass wait cursor while my form builds, and then
change it back to an arrow.
Anyone know an effective way to do this?
- TIA
- glenn
Does this help ?

http://www.dbasedeveloper.co.uk/rmCursor/rmCursor.htm
--
Ronnie MacGregor
Scotland

Ronnie at
dBASEdeveloper
dot co dot uk

www.dBASEdeveloper.co.uk
Glenn Johansen
2008-11-16 15:56:57 UTC
Permalink
Ok, so I can do the following...but without the sleep command, I don't see
the cursor being changed, and then it goes back to a pointer without me
telling it too after the sleep command.
I want the cursor to stay changed until I change it back, how can I do that?

TIA

IF type('LoadCursorFromFile') # 'FP'
extern chandle LoadCursorFromFile(;
cstring ;
) user32 from 'LoadCursorFromFileA'
ENDIF

IF type("SetCursor") # "FP"
extern chandle SetCursor(;
chandle ;
) User32 from 'SetCursor'
ENDIF

mycursor = LoadCursorFromFile("rmCursorBarber.ani")

SetCursor(mycursor)

sleep 3

? 'done'

*** cursor goes back to normal here without me setting it back ????
Loading...