JVCL Help:TJvCustomSettingsTreeView
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvCustomSettingsTreeView Class
[+] JvPageListTreeView.pas Classes
[+] TJvCustomSettingsTreeView Fields
[+] TJvCustomSettingsTreeView Methods
[+] TJvCustomSettingsTreeView Properties
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvCustomPageListTreeView
TJvCustomSettingsTreeView
TJvSettingsTreeView
run\JvPageListTreeView.pas
Summary
A tree view that behaves like the tree view in the Options Dialog in VS.net.
Pascal
run\JvPageListTreeView.pas
TJvCustomSettingsTreeView = class(TJvCustomPageListTreeView);
Description
TJvCustomSettingsTreeView is a base class for tree view controls that behave like the tree view in the Settings Dialog in Visual Studio: When a node in the tree view is selected, a new page of settings is shown on a panel to the right.
Specifically, the following is true:
- The normal ImageIndex/SelectedIndex is ignored for nodes - use PageNodeImages instead. You still need to assign a TImageList to the Images property * When a node is expanded, it is assigned the expanded image until it is colapsed, regardless whether it's selected or not * When a parent folder is selected, the first non-folder child has its normal image set as the selected image * By default, AutoExpand and ReadOnly is true, ShowButtons and ShowLines are false
Other than that, it should work like a normal TreeView. Note that the tree view was designed with AutoExpand = true in mind but should work with AutoExpand = false
To get the VS look, Images should contain:
- Image 0: Closed Folder
- Image 1: Open Folder
- Image 2: Right-pointing teal-colored arrow
PageNodeImages should then be set to (the defaults): - ClosedFolder = 0;
- ImageIndex = -1; (no image)
- OpenFolder = 1;
- SelectedIndex = 2;
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page