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 #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: Fri Mar 29 16:06:27 CET 2024

Total time taken to generate the page: 0.01035 seconds