Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 May 11 18:47:04 CEST 2024

Total time taken to generate the page: 0.02653 seconds