I was looking for a collapsible panel for many years.The most important feature I want from this control is to be able to collapse vertically.
Here are the results of my research:
FoldingPanel (VCL)
I used FoldingPanel v1.3 http://www.torry.net/authorsmore.php?id=2386 for years.
It comes with nice chevron bitmap too.
Advantage: The component comes as a single PAS file (easy to install into the Palette). They say that it is for Delphi 5 but I have it installed in XE7 and works without problems (which indicates quality).
Can collapse vertically: Yes
Price: Freeware
Issues:
1. It does not support composite controls (like TLabeledEdit). Its position will be slightly altered every time you save your form.
2. It is a Delphi 3 component (but still works on Delphi 12) so it does not support VCL Styles. However, it is easy to make it compatible with VCL Styles – the Paint method needs to be changed like this:
procedure TPaneles.Paint;
var
Rect: TRect;
FontHeight: Integer;
const
Alignments: array[TAlignment] of Word = (DT_LEFT, DT_RIGHT, DT_CENTER);
begin
if StyleServices(Self).Enabled <–
then Color:= TStyleManager.ActiveStyle.GetSystemColor(clBtnFace); <–
…
TSplitView (VCL)
If you have a newer version of Delphi (like Tokyo) you can use TSplitView.
Notes:
- The Align property it missing. And at the beginning it might seems that it can only be aligned to Left. But it is not true. Instead of an Align property it has a Placement property (with two values: svpRight / svpLeft).
- It has some small glitches related to control size/placement.
- It is not (NOT EVEN BY FAR) as complete as FoldingPanel. You still have to write some cod eto implement some kind of chevron to collapse/expend the panel.
https://www.youtube.com/watch?v=3hUG8o7PpCU
Can collapse vertically: No
Price: Freeware (if you have Delphi Tokyo).
TCategoryPanelGroup (VCL)
You know the TCategoryPanelGroup from the new Delphi Palette.
Can collapse vertically: Yes
Price: Freeware (if you have Delphi XE7)
TMultiView (FMX)
An FMX alternative for TSplitView is TMultiView.
Can collapse vertically: No
Demo project here: c:\Users\Public\Documents\Embarcadero\Studio\23.0\Samples\Object Pascal\Multi-Device Samples\User Interface\MultiView\MultiViewDemo.dpr
Video presentation here: https://www.youtube.com/watch?v=JRa3qkGNDZU
TExpander (FMX)
This is very close to what I was looking for. Unfortunately its title bar is too narrow and it only collapses if you click the chevron symbol which is way too small.
Can collapse vertically: Yes
Price: Freeware