Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox Replacement?
Message
 
To
26/06/2003 07:56:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00804130
Message ID:
00804139
Views:
26
When using the timeout parameter of the MessageBox, pass 4096 (MB_SYSTEMMODAL) in the DialogBoxType parameter to make it System Modal (this way it won't appear behind your application).

MessageBox("blah blah", MB_ICONEXCLAMATION, "Title", 10000)

The only problem is the form icon for the messagebox is not the same one you normally get in FoxPro.


>When you call the VFP Messagebox Function with the timeout parameter, it opens in a new window. The could be a problem since you can click on another program running in windows and then click back to the VFP app leaving the Messagebox window behind the scenes. This will also leave a user clicking all over the VFP app to no avail.
>
>Does anyone know how to make it so that this does not happen?
>Does anyone know how to take full advantage of the Windows API MessageBox function?
>Does anyone have their own MessageBox class?
>Am I doing something wrong?
>
>Thanks,
>
>David
Ryan Katri
COB System Designs, Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform