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 problems
Re: OptionTree problems [message #59946 is a reply to message #59933] Wed, 07 June 2023 09:44 Go to previous message
zouql is currently offline  zouql
Messages: 15
Registered: December 2020
Location: China
Promising Member
Hello mirek,

I think i found the reason.
In the CtrLib/Button.cpp Option& Option::Set(int b) function.
if the code is:
option = IsNull(b) ? Null : (bool)b;
then the option can't assign a Null.
but when changed to :
IsNull(b) ?  (option = Null) : (option = (bool)b);
the option can assigned to Null.

index.php?t=getfile&id=6814&private=0

index.php?t=getfile&id=6815&private=0
  • Attachment: buttoncpp.jpg
    (Size: 246.85KB, Downloaded 146 times)
  • Attachment: after.jpg
    (Size: 42.35KB, Downloaded 143 times)
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Iterate over all nodes
Next Topic: Scrollbar doesnt appear on TreeCtrl
Goto Forum:
  


Current Time: Mon May 13 00:38:34 CEST 2024

Total time taken to generate the page: 0.02515 seconds