Sets

Top  Previous  Next

DFM-Translator > Special assignments > Sets

Set values, which shall be assigned to a property are listed in a DFM file inside of brackets "[" ... "]". For example:

 

 

    Object FGColorBox: TColorBox

   ...

      Style = [cbStandardColors, cbExtendedColors, cbSystemColors, cbIncludeNone, cbIncludeDefault, cbPrettyNames]

 

Because changing the style of a TColorBox requires a parent for that box, there is a predefined assignment procedure, which might be executed with delay.

 

  AssignTColorBoxStyle(FGColorBox, (System::Set<TColorBoxStyles, cbStandardColors, cbCustomColors>() << cbStandardColors << cbExtendedColors << cbSystemColors << cbIncludeNone << cbIncludeDefault << cbPrettyNames));

 

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content