Home » U++ Library support » TreeCtrl » Right Clicking Tree Nodes?
|
|
Re: Right Clicking Tree Nodes? [message #10803 is a reply to message #10796] |
Mon, 30 July 2007 10:40 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
In constructor:
tree.WhenBar = THISBACK(TreeMenu);
And add OnTreeMenu function:
void TreeMenu(Bar &bar) {
bar.Add("Menu Item 1", THISBACK(OnItem1));
// etc.
}
Use tree.GetCursor to determine which node the mouse was clicked on.
James.
[Updated on: Mon, 30 July 2007 10:40] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Wed Jun 05 09:43:19 CEST 2024
Total time taken to generate the page: 0.02139 seconds
|