LCL Component for grouped information lazarus / 31-LCL ---------------------------------------------------------------------- dubst3pp4 · 2017-12-12 08:01 Hello, I'm not very experienced with the use of the LCL components, but I want to realize a list of grouped informations like in the screenshot attached (this is from VirtualBox). Is this possible with some of the LCL components? Maybe with the TListView? Is there somewhere a graphical overview of the LCL components, to get a first impression of what components are possible? Thanks for any hints :-) Marc ---------------------------------------------------------------------- Handoko · 2017-12-12 08:08 Maybe you can try TECAccordion: http://wiki.freepascal.org/Eye-Candy_Controls#TECAccordion Or ATGroup: http://wiki.freepascal.org/ATGroups ---------------------------------------------------------------------- dubst3pp4 · 2017-12-12 08:16 Thanks Handoko, TECAccordion looks very interesting, but I need something that can be displayed in list. It is possible that I have more than 20 of such grouped items in the list. I've attached another example, but the first screenshot is more of the type I'm searching for... ---------------------------------------------------------------------- Handoko · 2017-12-12 08:33 Maybe VirtualTreeView, it looks good: http://wiki.freepascal.org/VirtualTreeview ---------------------------------------------------------------------- dubst3pp4 · 2017-12-12 08:37 Thanks, VirtualTreeView looks very promising! ---------------------------------------------------------------------- wp · 2017-12-12 17:11 Why not use a plain old scrollbox to which you add frames? The master frame can be designed visually. ---------------------------------------------------------------------- jamie · 2017-12-13 00:00 I would use a OwnerDraw List box... Variable type to customize the heights ---------------------------------------------------------------------- dubst3pp4 · 2017-12-13 04:56 @wp wow, that really looks nice! When you build the list out of the data, do you add an instance of the masterframe for each item to the scrollbox? Sorry I never worked with frames... ---------------------------------------------------------------------- wp · 2017-12-13 09:20 Look at the code of the demo. It adds copies of the "master frame" at run-time and sets its properties as needed. The "master frame" itself is designed like a form after selecting "File"> "New" > "Module" > "Frame" ---------------------------------------------------------------------- dubst3pp4 · 2017-12-13 09:29 @wp oh sorry, did not see the attached project files! Many thanks! :-) ---------------------------------------------------------------------- howardpc · 2017-12-13 10:52 Note that you can write wp's excellent scheme using a less verbose and repetitive syntax for the setup code. See the attached adapted project. ---------------------------------------------------------------------- tudi_x · 2017-12-18 15:16 thank you for the example. i am just using it and would need to open an update form with fields on the button click. still cannot seem to show it in front of form, it is embedded in frame. please advise how i could create a modal form by pressing the button in frame that is in front of main form. (or should i just send an event to main form and open it from there?) ---------------------------------------------------------------------- howardpc · 2017-12-18 18:09 Attached is a skeleton example you can adapt to your needs.