Protected properties

Top  Previous  Next

DFM-Translator > Special assignments > Protected properties

A special case when converting DFM files are protected properties as for example IsControl in BMPDlg.dfm of the Graphex example:

 

  object Bevel1: TBevel

  ...

    IsControl = True

 

 

The standard translation would produce an error:

 

Bevel1->IsControl = true; // 'IsControl' is a protected member of 'Vcl::Controls::TControl'

 

There is a pre-defined procedure, which takes care for the correct assignment.

 

void AssignControlIsControl(TControl* xp, bool xb)

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content