Delphi tips :

Making a group of components visible / invisible

 
If you want to make part of a form to be visible only 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:
  • using the methods Show and Hide:
    Panel1.Show;
    //... at some later time:
    Panel1.Hide;
  • or using the property Visible:
    Panel1.Visible := True;
    //... at some later time:
    Panel1.Visible := False;

TOP   DelphiLand Club Membership  DC Library  Forum  Forum Archives  Crash Course Delphi  Tips  Source Code  Downloads  Links