CursorWait()

CursorWait()

Postby peterk » 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
peterk
 
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby peterk » Tue Nov 21, 2006 7: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
peterk
 
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

Postby Antonio Linares » Tue Nov 21, 2006 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby peterk » Tue Nov 21, 2006 9: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
peterk
 
Posts: 47
Joined: Thu Jul 13, 2006 2:39 pm

Postby Antonio Linares » Tue Nov 21, 2006 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], nageswaragunupudi and 60 guests