Setting the parent |
Top Previous Next |
DFM-Translator > Special assignments > Setting the parent A special case when converting DFM files are parents. The Parent property of a control is not set in the DFM file expilcitely, nevertheless Delphi2Cpp automatically sets the parent for all newly created controls. It is necessary, because all displayable components, i.e. all controls, must have a parent in order to be visible. Position properties of these controls then apply relative to the position of the parent.
Assignment procedures can also be defined for setting the parent property, like
void AssignTSplitterParent(TSplitter* xp, TControl* xpParent);
This procedure is predefined.
|
This page belongs to the Delphi2Cpp Documentation |
Delphi2Cpp home Content |