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;

 

DelphiLand Club Members of the DelphiLand Club receive our Crash Course Delphi, plus the fully commented source code of numerous projects, plus guaranteed answers from our Delphi Forum. Membership is for life!

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