Recent

Author Topic: Options dialog with Treeview  (Read 1828 times)

dietmar

  • Full Member
  • ***
  • Posts: 170
Options dialog with Treeview
« 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
Lazarus 2.2.0RC1 with FPC 3.2.2 (32 Bit) on Windows10 (64Bit)

wp

  • Hero Member
  • *****
  • Posts: 11854
Re: Options dialog with Treeview
« Reply #1 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