Home > Software engineering >  How to control the panel by clicking on the treeview node scroll?
How to control the panel by clicking on the treeview node scroll?

Time:09-17

Designed a window procedure, the left is a treeview, on the right is a panel, the panel in vertical arrangement many groupbox, each node name of the treeview with these same groupbox title, how to by clicking on the corresponding tree node, scroll to the corresponding groupbox place?

CodePudding user response:

Click on the node, to obtain the title, and then iterate over all groupbox title, find corresponding groupbox, get its top value, and then go to the appropriate location,

CodePudding user response:

reference 1st floor chewinggum response:
click on the node, to obtain the title, and then iterate over all groupbox title, find the corresponding groupbox, get its top value, and then go to the appropriate location,


Can you provide the code? thank you

CodePudding user response:

Vb.net? I didn't this environment,

CodePudding user response:

Chewinggum
reference 3 floor response:
vb.net? I didn't this environment,

VB6.0 by use also ok
Mainly to see how to get the top value again how to scroll to the value,

CodePudding user response:

Vb6 seems no panel,
My rolling, are two picturebox nested and then add two scroll bar, the control inside the picturebox top and left, it is set to a negative value to internal picturebox container rolling up or to left,

CodePudding user response:

Estimation is like QQ "Settings" interface style...

Anyway, content is not fixed, according to the "node" scroll to the corresponding position,

CodePudding user response:

refer to 6th floor a toast to invite the bright moon response:
estimation is like QQ "Settings" interface style...

Anyway, content is not fixed, according to the "node" scroll to the corresponding position,

Yes, that's the qq Settings, don't know how to get the position of the corresponding key to how to control the scroll to go to that

CodePudding user response:

Ah, the principle of all tell you, don't want to provide code? This code is not ten minutes to write a good, also don't suit in CSDN
  • Related