Returns 1 if checked, 0 otherwise. This function works for wxCheckBox and wxToggleButton.
This procedure works for wxCheckBox and wxToggleButton.