WWdbgrid -iniAttributes / saving grid settings to registry
Hi, I have a couple of issues with saving / restoring grid layouts to the registry.
First, I often notice that after multiple opening & closing of a form with a grid(s) in it that the column widths drift off so that I end up with the earier (left side) columns having to small a width and the right most coumns being far too wide. in general, the iniAttributes settings are: CheckNewFields - False; Delimeter - ;; ;Enabled - true; Filename - Software\MyApp; IgnoreTitles - False; SaveToRegistry - True; SectionName - (null); UnicodeIniFile - False; ProportionalColResize is True.
The other issue is, if I have multiple identical forms open, I end up with multiple sets of registry entries on the lines of:-
Software\MyApp\MyFormAGrid
Software\MyApp\MyForm_1AGrid
Software\MyApp\MyForm_2AGrid
Whereas I really only want 1 key
Is there a way of adding in additional code to strip out the _xxx from the registry key name when opening & closing the form?
Knid Regards
Steve Everington
Please sign in to leave a comment.
Comments
0 comments