Page 1 of 1
CursorWait()
Posted: Thu Nov 16, 2006 11:28 am
by peterk
Hi Antonio
Is the following correct:
When your application calls CursorWait() and the hour glass cursor is displayed, this DISABLES all keyboard and mouse clicking in your application until you call CursorArrow()
Can you please confirm the above or explain better
Thanks
Peter
Posted: Thu Nov 16, 2006 12:24 pm
by Antonio Linares
Peter,
No, not at all. The keyboard and mouse events keep being processed, unless you :Disable() the window.
Posted: Tue Nov 21, 2006 7:36 am
by peterk
Antonio
The cursorwait hourglass cursor does not let you click on anything so in that way it seems to disable clicking
Thanks
Peter
Posted: Tue Nov 21, 2006 8:09 am
by Antonio Linares
Peter,
What process are you doing in your application after you call CursorWait() ?
The process may be consuming all the CPU cycles and thats why it seems that events are not processed. Turning one cursor into another, will not make the application stop processing events.
Posted: Tue Nov 21, 2006 9:17 am
by peterk
Antonio
The proces is an intensive loop through a dbf, so you are probably correct
I am confused because sometimes they seem to work and other times they seem to get reset to the default cursor
I will try read up on them
Thanks for your assistance
Peter
Posted: Tue Nov 21, 2006 9:50 am
by Antonio Linares
Peter,
If you don't want to process any events, simply :Disable() the window. When you are done, :Enable() it.
Also if you do an intensive loop, you should call SysRefresh(), at certain places, to let Windows process its pending messages, or Windows will stop responding.