Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox() with nTimeout parameter
Message
 
 
To
03/10/2003 07:16:34
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00834704
Message ID:
00834756
Views:
19
See MESSAGEBOX not always on top Thread #800750.

>Hi,
>
>I'm experiencing something undesired when using the nTimeout parameter in a Messagebox() call.
>
>When a program issues a Messagebox() with that parameter, it (Windows?) creates another process (pardom me if what I'm saying is not "exactly" correct),and that can be noticed by the appearance of another entry the task bar of Windows.
>
>OTOH, when issuing the Messagebox() without the nTimeout parameter, it works as desired (at least by me).
>
>What I'm specifically trying to do is, when a VFP program is in the background (user is working with another program, like Excel, word, etc) and a timer fires in the background executing VFP program, it issues a Messagebox() (with nTimeout parameter) to warn user of something.
>
>For that I bring the VFP app to foremost position (issuing a call to SetWindowPos (_Screen.Caption)).
>
>That works ok, but the "process" containing the message produced by the Messagebox() keeps "behind" it, and what I wanted was to have the message appearing in the desktop of the VFP app, as it would happen whith a regular Messagebox().
>
>There is a means to make it work as desired?
>
>TIA
>
>Fernando
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform