CursorWait()

Post Reply
peterk
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

CursorWait()

Post 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
Peter
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Peter,

No, not at all. The keyboard and mouse events keep being processed, unless you :Disable() the window.
regards, saludos

Antonio Linares
www.fivetechsoft.com
peterk
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

Post 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
Peter
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
peterk
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

Post 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
Peter
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply