TreeView Bonkers

I'm going TreeView bonkers here. Arrg!

How do I get the node text name after the user has changed the name? I have tried the OnEdited event with tv.Selected.Text. This gives me the original name of the node. I need the name that it was changed to.

Thanks in advance,
Chad
dhertzfeAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

intheCommented:
this works fine:

procedure TForm1.TreeView1Edited(Sender: TObject; Node: TTreeNode;
  var S: String);
begin
showmessage(s);
end;


Regards Barry
0
intheCommented:
it shows the new text of the edited node.
0
intheCommented:
yep retested and works always fine.
hope its what you after :-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

intheCommented:
ps if your interested check out mikes treeview :
http://www.lischke-online.de/TreeNT.html

it has many extra features that are good
including many fonts etc..
ps.
 (its also not just for nt as the name may suggest)
0
dhertzfeAuthor Commented:
DAMN!....I sure do feel stupid.  I didn't even notice the "S" variable in the procedure.  I was going nuts trying everything in the world.

Thanks SO much,
Chad
0
intheCommented:
haha no problem :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.