... probably a simple question with a simple solution but.. ummm...
How would you make it so when you right click a node on a treeview list, it would select the item you right clicked on, and bring up a menu for that selected node? (i know how to bring up the menu.. just not how to select the item that was right clicked)....
What im doing, is making a buddy list for an instant messenger program im working on for an ISP... I have it so when you double click the node, it brings up the send message box for that user... and I want it so when you right click the node, it will bring up a little popup menu for the selected user..... but in order to do that, I need to have the user selected when you right click (like the buddy list on AIM.. it selects it for you when you right click)...
I know I COULD have the user left click to select it THEN ight click.. but I'm trying to make it more user friendly than that hehe
Any ideas would be greatly appreciated =)
How would you make it so when you right click a node on a treeview list, it would select the item you right clicked on, and bring up a menu for that selected node? (i know how to bring up the menu.. just not how to select the item that was right clicked)....
What im doing, is making a buddy list for an instant messenger program im working on for an ISP... I have it so when you double click the node, it brings up the send message box for that user... and I want it so when you right click the node, it will bring up a little popup menu for the selected user..... but in order to do that, I need to have the user selected when you right click (like the buddy list on AIM.. it selects it for you when you right click)...
I know I COULD have the user left click to select it THEN ight click.. but I'm trying to make it more user friendly than that hehe
Any ideas would be greatly appreciated =)