Link to home
Start Free TrialLog in
Avatar of JimR123b
JimR123bFlag for United Kingdom of Great Britain and Northern Ireland

asked on

TTreeView multi-select in Delphi 5?

I'm using Delphi 5, and need to use the TTreeView component, and a user wants to multi-select nodes in the tree-view control.

I gather it's possible in later versions of Delphi (as 5 is quite old now), but I can't figure out how to "turn it on" in Delphi 5.

Is this possible in Delphi 5?
SOLUTION
Avatar of 2266180
2266180
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JimR123b

ASKER

We're already using the standard Delphi TTreeView component in many places in our product, but there's just this one small area where we want to make the tree-view multi-selectable.

So, unfortunately, investing time and money (development resource cost) into a new component (no matter how good) isn't really an option.

It sounds like maybe it's just not possible at all with the standard TTreeView. Is this the case?

I'm happy to make some changes to the standard component, if that's what's needed. I just don't know what's needed.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Geert G
An alternate way ...

I suspect you need to do some function to all selected treeview nodes ?

To do this, you could create a new form (FormStyle = fsStayOnTop), with a treeview
Drag a node from the old treeview and rop it on this new form and treeview
Then when you have all the nodes in the new form, press a button which calls the function and then use a loop on the nodes in the new treeview ...

This is a workaround for the problem
Please accept an answer for others to find.
The purpose is to find solutions, a few where provided.
Somebody taking over the project will probably run into the same problem,
and these answers may come in handy.