TFormStorage
Description
In 32-bit version, when UseRegistry is True, TFormStorage uses standard TRegIniFile class. So the IniFileName passed to a TFormStorage component becomes a subkey under the system registry’s root key (HKEY_CURRENT_USER by default).
TFormStorage will work with any component or control you might have. Even 3rd party controls or controls you have designed yourself.
Using class TFormStorage
At design-time use component editor to add published properties of any other components to list of stored properties of TFormStorage component.
To save and restore the position of TRxSplitter component add to stored properties the Width or Height (according to Align property) of one of splitted controls (ControlFirst or ControlSecond).
To save and restore active page of tabbed controls (TNotebook, TTabbedNotebook or TPageControl) store ActivePage or PageIndex property.
You can save and restore text of edit controls by adding to stored properties the Text property for TEdit or Lines property for TMemo.
Use TFormStorage to save and restore state of windowed controls such as TCheckBox, TRadioGroup etc.
Link the TFormStorage (or TFormPlacement) component to IniStorage property of some another components to save and load information specific for these components (TRxCheckListBox, TRxDrawGrid, TSpeedbar, TMRUManager, TRxDBGrid) with no additional code.
TFormStorage component allows you to read and write virtually any component published property to an INI file or the system Registry with virtually no code.
Partager