Help in Treeview

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Anil

    Help in Treeview

    I want to invoke LabelEdit event of TreeView/ListView(proper ty 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.



  • Lasse Eskildsen

    #2
    Re: Help in Treeview

    Anil wrote:[color=blue]
    > I want to invoke LabelEdit event of TreeView/ListView(proper ty 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.[/color]

    Hi,
    Have a look at listview.focuse ditem.beginedit () and
    treeview.select ednode.beginedi t()
    Remember to set labeledit = true


    --
    Lasse



    Comment

    • Lasse Eskildsen

      #3
      Re: Help in Treeview

      Anil wrote:[color=blue]
      > I want to invoke LabelEdit event of TreeView/ListView(proper ty 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.[/color]

      Hi,
      Have a look at listview.focuse ditem.beginedit () and
      treeview.select ednode.beginedi t()
      Remember to set labeledit = true


      --
      Lasse



      Comment

      • David Lowndes

        #4
        Re: Help in Treeview

        >I want to invoke LabelEdit event of TreeView/ListView(proper ty set to true)[color=blue]
        >from another event what should I do?[/color]

        Send a TVM_EDITLABEL / LVM_EDITLABEL message to the control.

        Dave
        --
        MVP VC++ FAQ: http://www.mvps.org/vcfaq

        Comment

        Working...