- (void)new MyRadioBox( panel, ID_RADIOBOX, _T("&That"), wxPoint(10,160), wxDefaultSize, WXSIZEOF(choices2), choices2, 1, wxRA_SPECIFY_ROWS );
- m_radio = new wxRadioBox( panel, ID_RADIOBOX, _T("T&his"), wxPoint(10,10), wxDefaultSize, WXSIZEOF(choices), choices, 1, wxRA_SPECIFY_COLS );
- m_radio->SetForegroundColour(*wxRED);
-
-#if wxUSE_TOOLTIPS
- m_combo->SetToolTip(_T("This is a natural\ncombobox - can you believe me?"));
- m_radio->SetToolTip(_T("Ever seen a radiobox?"));
-#endif // wxUSE_TOOLTIPS
+ new MyRadioBox(panel, ID_RADIOBOX2, _T("&That"),
+ wxPoint(10,160), wxDefaultSize,
+ WXSIZEOF(choices2), choices2,
+ 1, wxRA_SPECIFY_ROWS );
+ m_radio = new wxRadioBox(panel, ID_RADIOBOX, _T("T&his"),
+ wxPoint(10,10), wxDefaultSize,
+ WXSIZEOF(choices), choices,
+ 1, wxRA_SPECIFY_COLS );
+
+#if wxUSE_HELP
+ for( unsigned int item = 0; item < WXSIZEOF(choices); ++item )
+ m_radio->SetItemHelpText( item, wxString::Format( _T("Help text for \"%s\""), choices[item].c_str() ) );
+
+ // erase help text for the second item
+ m_radio->SetItemHelpText( 1, _T("") );
+ // set default help text for control
+ m_radio->SetHelpText( _T("Default helptext for wxRadioBox") );
+#endif // wxUSE_HELP