Re: TreeView and Multiselect. by Saurabh
Saurabh
Wed Feb 11 06:54:41 CST 2004
Yes you can. Inherit your class from the treecontrol and add a new property
for Selections. Maintain an arraylist in your class for selected nodes. then
every time the user clicks on a node, depending on the Ctrl or Shift button
status, add the nodes into the arraylist. Expose this arraylist as
Selections from your tree control.
As far as the drawing of selected items is concerned, you will need to
override OnBeforeSelect and OnAfterSelect and do your painting work
Hope this helps,
--Saurabh
"Vladimir Bezugliy" <vbez@inbox.ru> wrote in message
news:df4401c3f099$b7fadf00$a301280a@phx.gbl...
> I do not find properties Multiselect in the TreeView.
> Can I in some way select several items at once?