I created a new custom control class called TGroupEx, based on TControl, which implements an expandable/collapsible panel system similar to an accordion container. It was not made by modifying explorerbar or other classes, it is an old project of mine that you will find in this forum but never finished.

Key features:
Custom header design
Support for header images
Expand/collapse button
Transparent background support
Automatic repositioning of related panels
Dynamic display/hide of child controls
Fluid resizing without width alteration
I think this control could be useful as a reusable component for accordion/group containers in FiveWin.
a simple application for an order for how you can use the class

The Tgroupex class works alone or together with others when it is together with others it behaves like the famous html accordion
easy syntax
creating groups
@ 10, 10 GROUPEX oGrp1 OF oDlg SIZE 540, 150 TITLE "Dati alunno" IMAGE ".\bitmaps\pngs\fruit.png" PIXEL
@ 170,10 GROUPEX oGrp2 OF oDlg SIZE 540, 120 TITLE "Permesso" IMAGE ".\bitmaps\pngs\fruit.png" PIXEL
@ 300,10 GROUPEX oGrp3 OF oDlg SIZE 540, 130 TITLE "Motivo" IMAGE ".\bitmaps\pngs\fruit.png" PIXELLink group together
[code] LINK GROUPS { oGrp1, oGrp2, oGrp3 } [/code]set style for each group
SET STYLE OF oGrp1 TO 1 THEME 1
SET STYLE OF oGrp2 TO 2 THEME 1
SET STYLE OF oGrp3 TO 2 THEME 1set last Stretch
SET LAST OF oGrp3 STRETCHI use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com




