Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MESSAGEBOX not always on top
Message
 
À
17/06/2003 09:13:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00800750
Message ID:
00800753
Vues:
32
>In VFP8, the MESSAGEBOX() is not AlwaysOnTop. This is a problem because not-so-savvy users may not click on the buttons of the message box dialog. Instead, they may click back on the form behind the messagebox. When this happens, it appears to "hang-up" the computer - Actually, what happens is the messagebox is modal but is not contained within the VFP application - instead, apparently its "ShowWindow" property is 2 - As Top Level form.
>
>Is there a way to change this property of the Dialog box or to I have to create my own Messagebox class and substitute it for all the places that I've used the messagebox().
>
>Thanks,
>al

It seems that you can set the MBox to be system modal with this undocumented parameters:

#DEFINE MB_SYSTEMMODAL 4096
#DEFINE MB_TASKMODAL 8192

See: Re: Undocumented Messagebox() parameter values Thread #793885 Message #793900
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform