Requires parent

Top  Previous  Next

DFM-Translator > Special assignments > TToolBar > Requires parent

The delayed setting of the parent of a toolbar also requires a delayed setting of some properties of its components. If for example the Style property of a TColorBox is seton a TToolBar, which hasn't a parent yet, the following exception is thrown:

 

EInvalidOperation: Element has no parent window

 

Therefore there is the predefined procedure AssignTColorBoxStyle, which will only be executed after the parent is set. If a user want to define such a procedure manually, he has to check the according box in the dialog for the definition of DFM assignment routines.

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content