U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
mrjt is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Tree Control - how to access properties of node.ctrl?
Next Topic: TreeCtrl Scroll triggers Parent Refresh
Goto Forum:
  


Current Time: Sat Oct 31 19:48:50 GMT+1 2026

Total time taken to generate the page: 0.38007 seconds