Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Monitors and Messagebox
Message
De
20/05/2010 11:49:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01465284
Message ID:
01465300
Vues:
85
>Our application does present messagebox's to the user and now that we have most using multiple monitors we are getting complaints that the messagebox is centered. (ie split between the 2 monitors)
>
>Is there a solution to having the messagebox center on the monitor with the form? (i don't think there is with the standard messagebox)
>
>What has others done in this case?
>
>Thanks in advance

Use a variable that denotes whether or not dual monitors are present. for all of your messagebox calls, use a .prg that determines if it is false, then call messagebox(), otherwise, call a custom message window where you can specify where you want it to display.

Forgot to add: Doug H had two good articles on multiple monitors:
http://doughennig.blogspot.com/2007/04/handling-multiple-monitors.html
http://doughennig.blogspot.com/2010/02/multiple-monitor-class.html
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform