ClientHeight (C++)

From RAD Studio Code Examples
Jump to: navigation, search

Description

This example reduces the height of the form's client area by half when you click the button on the form. Note that only the client area is halved, not the entire form.

Code

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  Form1->ClientHeight = Form1->ClientHeight/2;
}

Uses