Link to home
Start Free TrialLog in
Avatar of DMTrump
DMTrumpFlag for United States of America

asked on

How can I drag the text from a TEdit onto a TTreeView and drop it as a new node?

I need to be able to drag highlighted text from a TEdit component over to a TTreeView component and drop it as a new node.  

I have been simply programmatically placing it into the TreeView as a new first node then letting the user drag it where needed - but that seems like a kludge - directly dragging from the TEdit to the TreeView would be much more intuitive.

I <could> substitute a single line of tmemo for the TEdit - but I'd rather not - that can cause "disappearing text " if the user presses enter.
ASKER CERTIFIED 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 DMTrump

ASKER

Thanks - Yes I refer to that "About" article almost every time I need to do drag and drop!

This was the missing piece of the puzzle:  "(source as tedit).SelText"

Some time the answer is so simple it's invisible!