Advertisement

11.30.2007 at 07:11AM PST, ID: 22993196
[x]
Attachment Details

Controlling the edit of the nodes of a TTreeView

Asked by Kdo in C++ Builder

Tags: ttreeview, node

Hi All,

Does anybody know of a reasonable way to control and/or capture changes to a TTreeNode (node of a TTreeview)?  

If Editing of the TTreeView is allowed, the user can change node names by clicking on a selected item, much like changing a file name in Windows Explorer.

But the editing appears to be controlled by methods of the node that resemble a TEditBox.  Perhaps it is a TEditBox.  I don't know.

I'd like to get to the OnKeyPress and OnExit events to control what the user can type, and to detect when he's done editing, but haven't found a way to do this yet.

Any ideas?


Thanks,
Kent


Start Free Trial
 
Loading Advertisement...
 
[+][-]12.02.2007 at 11:59PM PST, ID: 20394255

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C++ Builder
Tags: ttreeview, node
Sign Up Now!
Solution Provided By: kode99
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.03.2007 at 05:27AM PST, ID: 20395191

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 10:12AM PST, ID: 20397297

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906