Sign in Join
Wiki copytemporary

TGroupBox

Deutsch · English · Français · Suomi · Русский · 日本語

A TGroupBox is a container that allows a number of objects to be grouped physically and conceptually on a form.

Usage

To use a TGroupBox on a form, you can simply select it on the Standard tab of the Component Palette and place it by clicking on the form.

Small example

pascal
procedure TForm1.RadioButton1Change(Sender: TObject);
begin
  GroupBox2.Visible:=Radiobutton2.Checked;
end;
pascal
procedure TForm1.Button1Click(Sender: TObject);
begin
  ShowMessage('User and administrator can click this button');
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  ShowMessage('Only administrator can click this button');
end;

->

See also


From the Free Pascal wiki, page "TGroupBox", as it stood on 2019-09-15 after a change by Djzepi, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.