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

Home » U++ Library support » TreeCtrl » OptionTree - something missing? [FIXED]
Re: OptionTree - something missing? [message #8976 is a reply to message #8915] Wed, 11 April 2007 06:21 Go to previous messageGo to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Thanks Mirek, that worked a treat Smile

ended up looking like this

struct TreeOption : Option {
virtual void LeftDown(Point p, dword keyflags) {
if(p.x<this->GetSize().cy) // in the checkbox
Option::LeftDown(p, keyflags); // def func
if(this->GetData()==true) // explicit for clarity
SetFocus(); //shame there is no killfocus()
}
};

are there any examples of changing the tree item hierarchy by dragging and dropping or do I need to go do it with a recttracker and if so can I show the contents whilst dragging? guess i would need to subclass recttracker?

thanks again,

nick
 
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: Tue Jul 21 08:27:05 GMT+2 2026

Total time taken to generate the page: 0.00482 seconds