Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - (SOLVED) Nodeclick event in Treeview control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

(SOLVED) Nodeclick event in Treeview control

 Post Reply Post Reply
Author
Message
pepsipela View Drop Down
Groupie
Groupie


Joined: 15 May 2008
Location: Spain
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote pepsipela Quote  Post ReplyReply Direct Link To This Post Topic: (SOLVED) Nodeclick event in Treeview control
    Posted: 12 February 2009 at 10:54am
Hi,

I am working with VB6 and Codejock controls 13.0.0 under Windows XP,

I need to implement contextual menus into nodes of Treeview control, but the right mouse button doesn't fire nodeclick event, and the selected node not change. Any suggestion ?

While i have pressed the mouse rigth button, the focus change to clicked node, but when i left the button the focus return to previous node.

Thanks,  
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 13 February 2009 at 2:42am
Hi,
So add ContextMenu in MouseDown/Up event and use treeView1.HitTest method to find item under cursor.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
pepsipela View Drop Down
Groupie
Groupie


Joined: 15 May 2008
Location: Spain
Status: Offline
Points: 24
Post Options Post Options   Thanks (0) Thanks(0)   Quote pepsipela Quote  Post ReplyReply Direct Link To This Post Posted: 24 February 2009 at 4:06am
Thanks for your help, this solution is working fine,

Regards
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.168 seconds.