Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best places to save and restore grid column pos/width
Message
 
 
À
22/12/2008 06:33:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01368984
Message ID:
01415776
Vues:
270
>What are the best places to save and restore the positions of a grid's columns. I can successfully restore the saved properties in Grid.Init() but have to save the grid column properties in the Form.Release() which beats the OOP purpose. Grid.Destroy() for saving is too late as there are no longer any columns.
>
>I am sorry, but you are mistaken. The place to save the settings is in the grid's destory - as a matter of fact, I have a grid class that does exactly this. When the container is instantiated, the init() of all the contained controls fires before the container's init(). When the container is destroyed, things happen in the opposite order - the container's destory() fires before the destroy of the contained controls. So the columns are still there when the grid's destroy fires.

Would be interested to see its code, thanks in advance.

UPDATE. Found this message #1285451
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform