DMTrump
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This was the missing piece of the puzzle: "(source as tedit).SelText"
Some time the answer is so simple it's invisible!