Home > Back-end >  Great god guiding Treeview problems in C Builder genuflect is begged!
Great god guiding Treeview problems in C Builder genuflect is begged!

Time:10-01

Excuse me my tree built after, how to realize the switch function?
Is to click on the node, corresponding to switch the TAB on the right, the problem is simple, thank you god!!

CodePudding user response:

This simple question no! Genuflect is begged!

Give you an idea... The practice of such... Habits... Each node in the tree control unit of the Tag corresponds to the project name... Then with the TAB to do corresponding... When the tree controls of any node is selected and trigger events... Then switch according to index of the Tag TAB on the right...

CodePudding user response:

Can choose text nodes in TreeViewClick events, traverse the TAB control, if the TAB title==text, is set to Active.

CodePudding user response:

Write an example, the use of tree index of neutron node attributes, activepageindex attribute within the page can be
To download, engineering is BCB6

http://pan.baidu.com/s/1bnCSPaR

CodePudding user response:

To the TreeView each TreeNode (nodes) Data attribute set a value, the relevant TabSheet PageControl Tag is also set a value, in the click event of the TreeView to judge the selected node, remove the value of the Data, to find and the Tag in the PageControl TabSheet the same value, then the display
  • Related