Help in Treeview

  • Thread starter Thread starter Anil
  • Start date Start date
A

Anil

I want to invoke LabelEdit event of TreeView/ListView(property set to true)
from another event what should I do?
The scenario is like windows explorer. If u click F2, selected node or item
will be editable. How to map that LabelEdit event with MenuClick event.
Please help me out.
 
Anil said:
I want to invoke LabelEdit event of TreeView/ListView(property set to
true) from another event what should I do?
The scenario is like windows explorer. If u click F2, selected node
or item will be editable. How to map that LabelEdit event with
MenuClick event. Please help me out.

Hi,
Have a look at listview.focuseditem.beginedit() and
treeview.selectednode.beginedit()
Remember to set labeledit = true
 
I want to invoke LabelEdit event of TreeView/ListView(property set to true)
from another event what should I do?

Send a TVM_EDITLABEL / LVM_EDITLABEL message to the control.

Dave
 
I want to invoke LabelEdit event of TreeView/ListView(property set to true)
Send a TVM_EDITLABEL / LVM_EDITLABEL message to the control.

Oh, and make sure the control has focus before you send the message!

Dave
 
Back
Top