chhean
May 19th, 1999, 11:09 AM
Hello,
I have an MDI application where the view has a splitter window with two panes. In the first pane, I have a CTreeCtrl created with TVS_EDITLABELS style. This feature works fine when I use the mouse: When I "spaced" click on a tree item label, the Edit control is displayed, so I can enter a new label and when i click outside the Edit control, the Edit control is destroyed and the OnEndEditLabel function is called.
But this feature does not work when I use the keyboard: When I press F2 key, the Edit control is not displayed. Once the Edit control is displayed (using the mouse click), I can enter a new label and when I press the "Enter" or "Esc" keys, nothing happens. The OnEndEditLabel function is NOT called and the Edit control is still displayed.
It seems like the splitter window has filtered the "Enter", "F2" and "Esc" key presses.
Can anyone help me?
Thank you.
I have an MDI application where the view has a splitter window with two panes. In the first pane, I have a CTreeCtrl created with TVS_EDITLABELS style. This feature works fine when I use the mouse: When I "spaced" click on a tree item label, the Edit control is displayed, so I can enter a new label and when i click outside the Edit control, the Edit control is destroyed and the OnEndEditLabel function is called.
But this feature does not work when I use the keyboard: When I press F2 key, the Edit control is not displayed. Once the Edit control is displayed (using the mouse click), I can enter a new label and when I press the "Enter" or "Esc" keys, nothing happens. The OnEndEditLabel function is NOT called and the Edit control is still displayed.
It seems like the splitter window has filtered the "Enter", "F2" and "Esc" key presses.
Can anyone help me?
Thank you.