Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement