Recent

Author Topic: Options dialog with Treeview  (Read 1528 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: 8881
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.
Mainly Lazarus trunk / fpc 3.2.0 / all 32-bit on Win-10, but many more...

 

TinyPortal © 2005-2018