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

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: 14291
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: Wed Jul 22 19:14:47 GMT+2 2026

Total time taken to generate the page: 0.00991 seconds