Popup menu and treeview control |
Post Reply |
Author | |
KevinC71
Newbie Joined: 12 February 2006 Location: United States Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 12 February 2006 at 7:44pm |
Hi all, I have a VB UserControl that contains a CommandBars and Shortcut Bar control as well as a TreeView control. The TreeView control has been embedded into the Shortcut bar client area: Set oItem = ShortcutBar1.AddItem(m_lTabID, strTabName, TreeView1.hWnd) In the MouseUp event for the TreeView control I have the following code to create and show a popup menu: Dim oPopup As CommandBar The popup displays and works fine but the problem is when you use the up/down arrow keys. Focus is changing on the popup menu, which it correct, but focus is also being changed in the TreeView control. Pressing the up/down arrows keys with an open popup menu should not cause the TreeView to change the current selection. Any ideas how to prevent this unwanted behavior? Thanks, Kevin |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |