Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Global Messagebox....
Message
 
 
To
12/02/2002 06:57:50
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00618742
Message ID:
00618866
Views:
15
Ric,

You shouldn't use MB_SYSTEMMODAL unless you really want to "violate" the Windows design guidelines. Here's a quote from MSDN:

MB_SYSTEMMODAL All applications are suspended until the user responds to the message box. System-modal message boxes are used to notify the user of serious, potentially damaging errors that require immediate attention and should be used sparingly.

I think your users are also going to get a bit peeved at you to have to dismiss this dialog once an hour. Would you really subject yourself to that kind of a UI?

I also think that since you are using MB_SYSTEMMODAL your VFP app will freeze up until the dialog is closed, once it's closed it'll fire off all of the timer events that have queued up.. think about that poor user that comes in first thing in the morning and faces all of the overnight event dialogs.

If you really want to present this kind of dialog, just use a regular VFP form with AlwaysOnTop set .t. and a timer based auto release of it.

>I have a timer app which runs some processes every hour... if there is a result to those processes, I want to have a message box pop up over all other windows (like outlook does when you get new mail) that tells me "Hey... I'm done for now"... is there an example of this somewhere??
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform