Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse movement clears WAIT WINDOW
Message
From
09/08/1999 22:46:25
 
 
To
09/08/1999 07:48:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00251380
Message ID:
00251858
Views:
6
>The application I am amending currently uses WAIT WINDOW NOWAIT 'xxx' to display error messages but the user has complained that the error messages disappear too quickly to read. This is because the slightest movement of the mouse clears the message. What I am trying to do is to display the message until either 2.5 seconds have elapsed, the user presses a key or clicks the mouse. To this end I have tried to use a timer in conjunction with WAIT WIND NOWAIT NOCLEAR. The problem I am having is that I have put the timer reset code into the form Click() and KeyPress() events but this is only fired when the user clicks on the form, not when the user clicks on one of the fields. Does anyone know how I can either get something that behaves like the WAIT WINDOW NOWAIT but ignores mouse moves or a way to pick up mouse clicks/key presses at a level higher (or lower depending on which way you look) than individual field level?
>
>Martyn.
>
>PS
>The application is currently developed in VFP 3.0 but will be converted to VFP 6.0 before the new version is delivered to the user.




As Ed Rauh said, it is formally to show the error in messagebox instead of wait window!!

Now, consider other solutions:

1) Wait Window Errmsg NOWAIT TIMEOUT 2.5
This still will go away as mouse click!

2) Wait Window Errmsg NOWAIT NOCLEAR
User will complain that the errormsg don't clear and Cover the area of input!!

3) Put the Errmsg at Status Bar
Not good in Highlight but not affected by mouse action!

4) Wait... NOWAIT NOCLEAR with adding a New Timer Control to _SCREEN

* TmrClearWait.Timer()
WAIT CLEAR
This.Enabled = .F.

What you need to do is to enable this timer after the WAIT command.. ^_~
Timer Interval 1000 = 1 second
So, for 2.5 seconds will be 2500

But for my conclusion, it still use a Messagebox to show ERROR because the degree of happening
may be serious!

Best Wish! ~_^
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Reply
Map
View

Click here to load this message in the networking platform