TToolBar

Top  Previous  Next

DFM-Translator > Special assignments > TToolBar

A special case when converting DFM files is TToolBar. If the toolbar is first created with its parent and then components are placed in it, it may happen that the components do not appear in the desired positions. However, the correct positions arise if the parent of the toolbar is only set after the components have been placed.

 

Unfortunately, the delayed setting of the parent of the toolbar also requires a delayed setting of some properties of its components. Property assignments that require a parent can be configured to only occur if the parent exists.

 

To ensure that components placed from a toolbar appear in the desired positions, the parent of the toolbar must only be set after the components have been placed.



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content