Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to bring a form to front
Message
 
 
À
20/02/1998 15:45:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00080198
Message ID:
00080237
Vues:
32
Ed, it seems that VFP uses the Name property of the form as the form's VFP window name, so that if you know the Name property of the form (lets says it's called frmMyForm), you can say:
Activate Window frmMyForm Top
Zoom Window frmMyForm NORM

So what, you say? This is a segway to asking for your advice on the issue of never-use-a-window-name to refer to a form object. For example, I have found that if I have a modeless form sitting around out there, and based on some event that is NOT related to that form (i.e., there is no ThisForm reference), I then need to close that form, I have found it very convenient to say:
Release Window frmMyForm
...rather than iterating through _screen.forms(x) just to find the form (or forms) that I need to close.

Is this blasphemy? Thanks.

>>Problem is that since the form is minimized it does'nt appear in _screen.forms(x). Or is it a bug in my programming?
>>
>>>>Hi, I'm using amain window with several forms. How do I bring a form to the front? I'm already using _screen.forms(x).windowstate to minize the forms but how do I bring them back?
>>>
>>>_scree.forms(x).show
>
>Minimized form is still inside _screen.form, so
>_screen.forms(x).windowstate=0 && restore form
>_screen.forms.show() && bring it up front
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform