Skip to main content

TdxCustomTileControl.OnInitStoredObject Event

Enables you to initialize tile groups and items that are created when restoring the tile control’s settings from external data stores.

Declaration

property OnInitStoredObject: TcxInitStoredObjectEvent read; write;

Remarks

When the tile control’s settings are restored from a data store by calling the RestoreFromIniFile, RestoreFromRegistry, or RestoreFromStream method, and a data store’s group/item is missing in the tile control, this group/item is automatically created in the tile control, provided that the method is called with True passed as the AChildrenCreating parameter. After the group/item has been created, the OnInitStoredObject event is fired. You can handle this event to properly initialize the object which corresponds to the created element. Initialization includes re-associating group/item events with existing event handlers and assigning group/item properties.

The tile control being restored from a data store and the group/item that has been created are passed as the Sender and AObject parameters of the OnInitStoredObject event, respectively.

See Also