Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My modal messagebox
Message
 
 
À
21/11/2000 23:19:18
Koos Veel
Gamma Research
Aruba
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00444473
Message ID:
00444524
Vues:
7
Koos,
You could modify the call to display your messagebox to receive an extra parameter. The parameter would be an object reference to the form that it is supposed to use to calculate its center. If it is not passed (as it wouldn't be for all your pre-existing code) then you could default to _Screen.

Or you could set the Desktop property to .T. to make it appeat outside of your application and always use sysmetric(1) and sysmetric(2) to calucalte the center. This wouldn't help if your whole application were invisible but it would take care of the other issues.

HTH.

>Hello,
>
>Using VFP 6.0: For several reasons we wrote our own messagebox for our application framework and we always center it on the center of the _SCREEN but we have some problems with it. If the application is an app that is a "toplevel one form app" then the messagebox does not show (showwindow = 1 ("in top level form")) because it will be outside the form. We also cannot use the messagebox when there is no form open yet and the foxpro screen is not yet visible.
>Is there a simple way to solve these messagebox problems ?
>
>
>Koos.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform