Help with c++ syntax for wxcheckbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • papafreebird
    New Member
    • Mar 2008
    • 3

    Help with c++ syntax for wxcheckbox

    I'm starting to code using linux codeblocks IDE and GCC compiler to create a wxwidgets gui. I have experience coding gui's in c++ builder 6 with no problems but now that I am trying to code in linux for linux I'm having issues with the syntax.

    What works in c++ builder doesn't work in codeblocks.

    the following is a c++ builder script that works for what I want.
    Code:
    
    if (CheckBox14->Checked==true)
    
    {
    CheckBox13->Enabled=false;
    }
    
    else if (CheckBox14->Checked==false)
    {
    CheckBox13->Enabled=true;
    }
    Here is what I have so far that works in codeblocks.
    Code:
    if (fast->IsChecked())
    {
    normal->Disable();
    best->Disable();
    }
    else if (fast->What do I put here for unchecked?)
    {
    normal->Enable();
    best->Enable();
    }
    Notice that I am stumped as to what syntax to use for the "else if " statement. I have tried
    fast->IsChecked==fal se
    fast->UnChecked==fal se
    fast->IsChecked(fals e)

    and none work. Any help would be appreciated.

    Edit~~ Okay I figured it out fast->IsChecked()==f alse worked great.
    I would still like a link to a good wxwidgets c++ tutorial or a good wxwidgets c++ book.

    Also If you know of any good books or links to tutorials I would be very much grateful.
Working...