Reputation: 997
Using Delphi Tokyo with Windows10.
I would like to use Expanders in my VCL App, ie, to quickly show/hide info and to declutter UI's. They are pretty common now and done very well elsewhere, eg, in Microsoft's Fluent UI and also in Android, in fact they are part of Android's Material Design.
Delphi does include the TExpander Component for FMX, but for some reason does not have one for VCL (yet).
How are others handling this in their VCL Apps?
Is there a way to access and instantiate the Expander component that Windows itself uses with an API call?
Are folks just writing their own? If so, I would welcome a link to a Github repo or equivalent so I don't have to reinvent the wheel. I am not asking anyone to write anything just asking if anyone's done this and for a pointer. If not, I will write one myself and share.
I know there is the TCategoryGroupPanel, it just isn't very snappy and is somewhat awkward. I also know that TMS sells something like this but unfortunately this will not work.
Alternate suggestions for getting an Expander Component into a Delphi VCL App would be most welcome too.
Thank you
Upvotes: 2
Views: 1034
Reputation: 7912
There is no native Windows control for collapsible panels (for use in VCL application), but you can use the mentioned TCategoryPanelGroup. In my opinion I cannot say there are issues that could prevent you using that control.
Upvotes: 5