appglobalswitch RegistrySaver structure
Return to Introduction  Previous page  Next page
Applies to
acAppGlobalSwitch component.  

Declaration
type  
  TacAppGlobalSwitchRegistrySaver = class  
  public  
    procedure Load;  
    procedure Save;  
  published  
    property Enabled: Boolean;  
   
    property RegLocationTacRegLocation;  
    property RegKeyString;  
  end;  

Description
The RegistrySaver is the set of properties which lets the component to save the Value to the system registry when application closes, and restore it on application restart.  
 
To enable this feature, to save and load the Value property from the registry — set Enabled to True, and specify RegKey (registry key) and RegLocation (rlCurrentUser = HKEY_CURRENT_USER or rlLocalMachine = HKEY_LOCALMACHINE).  

See also
GlobalSwitch and Value properties;  
OnSwitch event.