TTreeNodes.DefineProperties procedure
Specifies read and write routines used to stream the class instance in LCL.
Declaration
procedure DefineProperties(Filer: TFiler); overrideArguments
Filer | TFiler instance used to read or write properties for the class instance during LCL streaming. |
Description
DefineProperties is an overridden method in
TTreeNodes
used to associate read and write routines with properties handled by the
TFiler instance specified in
Filer. It calls the inherited (empty)
virtual method on entry, and assigns to Filer the read and write routines
which are used for the Data and NodeData properties in TTreeNode instances in
the container. These routines ensure that TTreeNode data written using both
Lazarus and Delphi are handled during LCL streaming. ReadData and
WriteData methods are used for the Data properties in the tree nodes. The
ReadDelphiNodeData method is used for the NodeData properties in tree nodes;
no write routine is provided.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
