roth-a / expandpanels

Lazarus component for arranging collapsible panels
13 stars 6 forks source link

TMyRollOut and ExpandPanel

These are Lazarus components. More infos please check the TMyRollOut and ExpandPanel wiki.

Features

Usage

Components installed in Lazarus

After installing both components into Lazarus, you can add multiple TMyRollOut instances (myrollout1, myrollout2, etc.) to the form. To arrange them beneath each other you have to add the TMyRollOut instances to a expandpanel (in OnCreate) with the command:

expandpanel1.AddPanel(myrollout1);
expandpanel1.AddPanel(myrollout2);

Components not installed in Lazarus

If you want to create all the components during runtime (like in the development example), you have to execute:

expandpanel1:=TExpandPanels.create(self);
myrollout1:=TMyRollOut.Create(self);
myrollout1.Parent:=self;
expandpanel1.AddPanel(myrollout1);

and then add them to the expandpanel1

expandpanel1.AddPanel(myrollout1);
expandpanel1.AddPanel(myrollout2);

Demo Project