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 » Manually set option in OptionTree
Manually set option in OptionTree [message #45491] Mon, 23 November 2015 21:15 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
void Set(int id, bool b) { option[id]->Set(b); SetOption(id); }



Best regards
Iñaki
Re: Manually set option in OptionTree [message #45650 is a reply to message #45491] Fri, 18 December 2015 22:08 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
koldo wrote on Mon, 23 November 2015 21:15
void Set(int id, bool b) { option[id]->Set(b); SetOption(id); }

In addition to this proposal it would be great and very simple to have these other features:

int GetCount() const	{ return option.GetCount(); }

Callback1<int> WhenOption;  // Now WhenOption does not return the option selected


Best regards
Iñaki
Previous Topic: [solved] Can we get the private members of TreeCtrl made protected?
Next Topic: How to add a structure to tree node
Goto Forum:
  


Current Time: Thu Mar 28 22:09:17 CET 2024

Total time taken to generate the page: 0.00505 seconds