Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>>We finnaly got VFP 9 here in our office. I was fooling around with the achor property and find it very useful. However we have a small issue. We have a custom written class that saves the form size and position in the registry when the form is closed, and restores that size and position when the form is loaded. But now, when form is enlarged or shrunk based on what its size was last time the form controls are not automaticly resized to what they should be based on the size of the form. Is there anyway around this?
>>
>>This state restorer class is just a custom class that gets dropped on a form. In it's init code, it grabs the form name, reads values from the system registry and sets the size of the form and stuff.
>
>
>As just said to Fred, I fixed the problem in my control and updated the download here on the UT download. The problem was that reloading of the form size and position had to be done in the controls Refresh, not in the Init. By simply move the Init code to the Refresh solved the problem.
>
>Hope this helps.
Wouldn't this potentially cause problems. I call the form refresh many times while the form is loaded. If i open the form, then resize it, wouldn't a refersh resize the form back to what it was when it was initially opened. I am assuming you save state when the form is closed.
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