JVCL Help:TJvFormPlacement

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvFormPlacement
TJvFormStorage
run\JvFormPlacement.pas


Summary

Enables storing and retrieving the placement and size of a form.

run\JvFormPlacement.pas


Pascal

 run\JvFormPlacement.pas
 TJvFormPlacement = class(TJvComponent);


Description

TJvFormPlacement is a base class for the TJvFormStorage component. These components provide a quick method for storing and retrieving data to a storage.
The TJvFormPlacement component enables automatically storing and retrieving the placement and size of its parent form.
To use this component, do the following:

  • Drop a TJvFormPlacement on a form.
  • Use Options to specify what information about the parent form should be stored.
  • Use the AppStorage property to link the component to a storage component.
  • Use AppStoragePath to specify the location in the storage to save and read the data to.
  • You can then set property Active to true to allow automatically save and restore the specified properties, or call the RestoreFormPlacement and SaveFormPlacement methods at run-time to retrieve or save the form.
  • The MinMaxInfo property provides an easy way to limit a sizable form's minimum and maximumtracking size.
  • Write OnSavePlacement and OnRestorePlacement event handlers to save and restore additional information, but you could also use the TJvFormStorage for this task.
  • Link the TJvFormPlacement (or TJvFormStorage) component to the IniStorage property of other components to save and load information specific for these components (TJvCheckListBox, TJvDrawGrid, TJvSpeedbar, TJvMRUManager, TJvDBGrid) with no additional code.

run\JvFormPlacement.pas


See Also

TJvFormStorage

run\JvFormPlacement.pas


About

Navigation

run\JvFormPlacement.pas



Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page