Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Global Messagebox....
Message
From
12/02/2002 11:33:39
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00618742
Message ID:
00618882
Views:
13
Hi David,

Well, after I got the response I did some checking and found that out - ironically, that is what I want in this case... this timer.app is checking for inbound parsing errors in the log... but, the channels are only open during business hours (bankers hours)... for this app, consider it like outlook - that silly message pops up (unlike outlook we don't want to turn it off) but it is only for certain functions... the poll is made every hour (arbitrary based on incoming dataloading) to check the error log and if there is a new entry I just want to let the user know... this particular error needs to be addressed within 60 minutes of occuring as that is when the next cycle should be starting and I want to avoid backlog... FWIW - the error to call the MB_SYSMMODAL will occur when certain incoming datastream components (such as a product identification code) is marked as invalid. The manager will have to decide on approrpriate action (such as replacement/replinishment procedures)...

Cheers,

Ric

>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??
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform