FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour CursorWait()
Posts: 47
Joined: Thu Jul 13, 2006 02:39 PM
CursorWait()
Posted: Thu Nov 16, 2006 11:28 AM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
CursorWait()
Posted: Thu Nov 16, 2006 12:24 PM

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
Posts: 47
Joined: Thu Jul 13, 2006 02:39 PM
CursorWait()
Posted: Tue Nov 21, 2006 07:36 AM

Antonio

The cursorwait hourglass cursor does not let you click on anything so in that way it seems to disable clicking

Thanks
Peter

Peter
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
CursorWait()
Posted: Tue Nov 21, 2006 08:09 AM

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
Posts: 47
Joined: Thu Jul 13, 2006 02:39 PM
CursorWait()
Posted: Tue Nov 21, 2006 09:17 AM

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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
CursorWait()
Posted: Tue Nov 21, 2006 09:50 AM

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

Continue the discussion