JimR123b
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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.
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.
ASKER
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.