WxRadioButton

From WxWiki

Jump to: navigation, search

[edit] Pitfalls

In a dialog box you may find that the first wxRadioButton is selected even if you've selected a different one during dialog initialization. When a wxRadioButton gains focus it's automatically selected so if it's the first control in your dialog box (and hence the default focus item) it will be checked when the dialog is shown. To work around this, call the SetFocus() method on the wxRadioButton that you've selected while initializing your dialog.

[edit] See Also

  • Wiki pages: WxCheckBox (for not-mutually-exclusive, simple on/off/disabled choices)
  • Official documentation: wxRadioButton
Personal tools