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 » Community » Newbie corner » The Mysterious checkbox (I am positively confused by the Check box (a.k.a Option) control)
Re: The Mysterious checkbox [message #55618 is a reply to message #55609] Tue, 24 November 2020 10:35 Go to previous message
omari is currently offline  omari
Messages: 276
Registered: March 2010
Experienced Member
also, you can use it the easy way. think of int operator() that return : 1 if checked, 0 if not.
    Option a;
    ....
    a = 1;  // set checked
    a = 0;  // set unchecked
    a = true;  // set checked
    a = false; // set unchecked
    a = !a;  // change checked
    ....
    if(a) // checked
    {
     ...
    }




regards
omari.

[Updated on: Tue, 24 November 2020 11:37]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Reliably converting between std::vector<uint8_t> and WString
Next Topic: check if application is running
Goto Forum:
  


Current Time: Sun Jul 13 21:37:56 CEST 2025

Total time taken to generate the page: 0.03270 seconds