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 loses check state when add Callback for the option.
Re: OptionTree loses check state when add Callback for the option. [message #37700 is a reply to message #37576] Sun, 04 November 2012 09:12 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
It is because the WhenAction of Option is used by OptionTree to do the work. So if you replace it with your own callback, nothing happens.

Use operator<< to add callback instead of replacing it:

x[0] << THISBACK(OnOption1);


Mirek
 
Read Message icon1.gif
Read Message
Previous Topic: Change font color in TreeCtrl
Next Topic: Cannot scroll selected node into view from code [SOLVED]
Goto Forum:
  


Current Time: Fri Aug 22 06:34:23 CEST 2025

Total time taken to generate the page: 0.05154 seconds