TreeView - editing node labels

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm having problem. I want to have a block of code run, after a user edits the label of a node, so I put the code in the event method of the afterLabelEdit event. The problem is that this code is called even before the label is finished being edited - its being called as soon as beginEdit is called. How can I have a block of code that is run only after the user finished editing?
 
I'm having problem. I want to have a block of code run, after a user
edits the label of a node, so I put the code in the event method of the
afterLabelEdit event. The problem is that this code is called even
before the label is finished being edited - its being called as soon as
beginEdit is called. How can I have a block of code that is run only
after the user finished editing?

It's a pain. Best is to pop up a string input dialog which asks for
the new name and show that modal. You can then precisely say when the code
should run.

The reason it is a pain is because label editing is done by sending a
message to the underlying win32 treeview control. This isn't synchronized
very well with the synchronous behaviour of .NET.

FB
 
Back
Top