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

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: 21
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 839 times)
  • Attachment: after.jpg
    (Size: 42.35KB, Downloaded 882 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: Sat Oct 10 10:39:16 GMT+2 2026

Total time taken to generate the page: 0.03010 seconds