Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anchor and restoring state
Message
De
26/01/2005 16:39:58
 
 
À
26/01/2005 16:34:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
MS SQL Server
Divers
Thread ID:
00980802
Message ID:
00980960
Vues:
54
>>>This is how my control works. But the VFP 9.0 Anchor are tied to the Resize event internally. Calling the Resize event as a method does not resize the control as according to the anchors.
>>>
>>>>I'm thinking the state restorer will have to be modified to have a manual method that causes it to restore the form size and position. That way you can load the form with visible = .f. and then in the init of the form manually restore the state and then make the form visible.
>>>>
>>>>
>>>>
>>>>
>>>>>Yes, I am interested in this too. I have here in the download section a control that does just this (download #19100). I just check it out, and I too see that the controls do not resize when the form size changes programmitically. The control is calling the Resize and Refresh events after changing the diminsions, but the control do not resize. I would like to update the control to respect the VFP 9.0 Anchor property, but I too am stumped.
>>
>>VFP9 controls that are anchored will resize when the form .Height and .Width properties are changed. Maybe what your Resize code should do is a simple thisform.Height = thisform.Height to get things to fire off?
>
>
>Try that. Did not work. I tried it in the form Init and Activate.

I wonder what's different in your system from mine. When ever I change the Form. Height/.Width properties, the controls resize. You don't have a NODEFAULT in the .Resize or something like that, do you?

Update: Is your form visible? Somethings don't "kick in" unless the form is visible. Another thing you might try is putting the property setting values in the .Show method.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform