Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form windowstate - please help
Message
De
12/08/1998 15:23:22
 
 
À
12/08/1998 15:17:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00126146
Message ID:
00126173
Vues:
18
>>>I posted this question the other day. No response. Anyone know the answer?
>>>
>>>I have 5 main forms in my app. All can be open at the same time. When one is maximized the others are "normal" and as I cycle through them only the active form is maximized. I can watch the behavior in the watch window. The windowstate is 2 for the active one and 0 for the rest.
>>>
>>>My problem is that when I close the one on top, the one behind it doesn't maximize. It's driving my testers crazy.
>>>
>>>Is this standard behavior in vfp 5? Is there something that I'm doing wrong.
>>>
>>>please help
>>>
>>>paul
>>
>>Normal behaviour for a form is keeping of form size, regardless of active status. If you want to make active form maximized then you could add
>>This.WindowState=2
>>in Form.Activate event
>
>Thanks. I thought that was the case.
>
>However, I don't want the forms to be maximized all the time. I want my users to be able to position them and size them to their liking, including maximized. The settings are stored to an INI file when the exit the form.
>
>The code you mentioned will work but it's just a band-aid. I'd like to understand what's causing the current behavior.
>
>The only other thing that's different about my forms is that I run the with the following code:
>
>public frmExecs
>do form execs name frmExecs linked
>
>It makes it easier to reference and release the form later on.
>
>paul

Probably, you misunderstood me. If don't want your forms to be maximized then just don't set WindowState=2 either in code or in property sheet.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform