Lazarus

Programming => LCL => Topic started by: dietmar on July 27, 2021, 04:55:42 pm

Title: Options dialog with Treeview
Post by: dietmar on July 27, 2021, 04:55:42 pm
Hi,

I am creating an options dialog. The user selects a sub-category of the options via the Treeview left, and on the right I want to display the according options.

I suppose this can only be realized with a Pagecontrol (not showing the tabs), which loads the appropriate subpage accordingly to the selected sub-category?

Thx
Dietmar
Title: Re: Options dialog with Treeview
Post by: wp on July 27, 2021, 05:04:19 pm
I'd use a TNotebook rather than a TPageControl because a TNotebook is completely invisible while a TPageControl has its own border and color.

Look a the ChartEditor demo in folder components/tachart/demo/charteditor of Laz 2.2 or trunk where a tree-notebook combination is used in some configuration dialog. All the pages of the notebook are frames to keep things apart.
TinyPortal © 2005-2018