C++Builder Tips: Hiding componentsIf you want to show or hide a group of components from time to time, put these components on a separate panel. Next, show or hide the panel as needed. You can do this in two different ways:
![]()
To quickly "toggle" the visibility
by clicking a button, write this OnClick event handler for the button:
void __fastcall TForm1::Button1(TObject *Sender) { Panel1->Visible = !(Panel1->Visible); } |