Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide hourglass during procedures
Message
From
09/08/1999 08:14:10
 
 
To
06/08/1999 13:34:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00249958
Message ID:
00251390
Views:
16
>>>>>>I've got a long procedure that runs in the background in which I watch for keypresses. I don't want to show the mouse cursor because mouse clicks don't work. I tried setting mousepointer to 13(none) for all of my objects but as soon as the procedure is launched and you bump the mouse, the hourglass pops to the front.
>>>>>>
>>>>>>Is there any way to disable, hide, kill the mouse pointer in a permanent fashion??
>>>>>>
>>>>>>Thanks
>>>>>
>>>>>You might need to fiddle with it, but I you can do something like
>>>>>
>>>>>THISFORM.SetAll( "MousePointer", 11 ) && Hourglass icon
>>>>>* Run your process
>>>>>THISFORM.SetAll( "MousePointer", 0 ) && Default icon
>>>>>
>>>>>Bill
>>>>
>>>>Oops. Sorry. Didn't read you post carefully enough. You don't want the hourglass to appear. I don't really understand this since the hourglass is the universal symbol that says to the user "I'm working so don't bother doing anything". Am I missing something about what you're trying to accomplish?
>>>>
>>>>Bill
>>>
>>>The users CAN still use the keyboard. In fact they are supposed to. The routine continually runs checking measurement hardware. The user uses the keyboard to tell the routine which points are active/inactive, when to reset, when to exit the whole thing.
>>>
>>>Mouse clicks are unavailable, but I don't want to give the message "Just sit there and wait" because it'll never get done. In fact, it is an infinite loop until the user uses Alt+Q to Quit out of the process.
>>>
>>>Thanks for your thoughts and help.
>>
>>What happens if you issue:
>>
>>THISFORM.SetAll( "MousePointer", 13 ) && Hide Pointer
>>* Run your process
>>* Then some time later
>>THISFORM.SetAll( "MousePointer", 0 ) && Default icon
>>
>>Bill
>
>Same thing. I think I need to give VFP a break (wait state, inkey) in the routine for it to recognize that it is supposed to be hiding the mouse.

Sorry Joe. I don't know what else to tell you in this case. A kludgy way would be to issue MOUSE AT 10000, 10000 which would place the mouse pointer in the extreme lower right corner of the screen and not really visible unless the user moves it back up. But this is really crude, doesn't really solve your problem and moving the user's mouse on them could tick them off. Someone else might have a solution and will chime in.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform