i want one of the choices to be selected if one of the following conditions apply.
Code: Select all
ttc = new wxRadioBox( m_panel4, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, ttcNChoices, ttcChoices, 1, wxRA_SPECIFY_COLS );
void test::open()
{
int test;
if ( test < 0)
{
ttc->SetSelection( 2 );
test = test * -1;
}
else
{
test = test;
ttc->SetSelection( 1 );
}
output->SetValue(wxString::Format(wxT("%d"),test));
}