CustomForms (C++)

From RAD Studio Code Examples
Jump to: navigation, search

Description

The following code adds the name of all forms and dialogs on the screen to ListBox1 when Button1 is clicked.

Code

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  for (int i = 0; i < Screen->CustomFormCount; i++)
    ListBox1->Items->Add(Screen->CustomForms[i]->Name);
}

Uses

Personal tools
Assistance