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 » OptionTree - something missing? [FIXED]
Re: OptionTree - something missing? [message #8915 is a reply to message #8912] Sat, 07 April 2007 09:04 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You have to use TreeCtrl and little magic:

struct MyOption : Option {
	virtual void LeftDown(Point p, dword keyflags) {
		SetFocus();
		Option::LeftDown(p, keyflags);
	}
};

.......
TreeCtrl tree;
Array<MyOption> option; // clear before loading tree...
.......

TreeCtrl::Node node(option.Add());
option.Top().SetLabel(text);
int id = tree.Add(parentid, node);


Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Example
Next Topic: TreeCtrl - DeepClose not works
Goto Forum:
  


Current Time: Fri Apr 19 14:06:50 CEST 2024

Total time taken to generate the page: 0.84396 seconds