Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Store column settings in a grid
Message
De
12/05/1999 13:53:32
 
 
À
07/05/1999 22:30:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00216330
Message ID:
00217954
Vues:
20
To save various user settings you can untilize a "RESOURCE" table loosely structured as follows:

USERID C
FORMID C
FORMTOP I
FORMLEFT I
FORMWIDTH I
FORMHEIGHT I
GRIDARRAY M

In your base form class add code to the DESTROY event which captures the above settings. Define an array to hold grid settings. By drilling down the containership hierarchy locate each grid and create an array row. Each row could be structured as follows:

grid reference ( thisform.container1.container2.grid1 ) hint ( sys(1272) )
columnstring C1,O99,W999;C2,O99,W999...

After saving the grid data to the array, store the array to the Memo field.

Add code to the INIT event of your base form class to attempt to retrieve a record from the "RESOURCE" file and if found apply the saved info.


>How can I store the ColumnOrder and Width when the user modifies a grid?
>
>Thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform