General information
Category:
Forms & Form designer
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only