replaced m_isRadioButton with a virtual function

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-05-31 14:17:23 +00:00
parent d760f23e76
commit 2b4f3c9f76
8 changed files with 82 additions and 54 deletions

View File

@@ -64,13 +64,17 @@ void gtk_radiobutton_clicked_callback( GtkToggleButton *button, wxRadioButton *r
IMPLEMENT_DYNAMIC_CLASS(wxRadioButton,wxControl)
bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos, const wxSize& size, long style,
const wxValidator& validator, const wxString& name )
bool wxRadioButton::Create( wxWindow *parent,
wxWindowID id,
const wxString& label,
const wxPoint& pos,
const wxSize& size,
long style,
const wxValidator& validator,
const wxString& name )
{
m_acceptsFocus = TRUE;
m_needParent = TRUE;
m_isRadioButton = TRUE;
m_blockEvent = FALSE;
@@ -94,10 +98,11 @@ bool wxRadioButton::Create( wxWindow *parent, wxWindowID id, const wxString& lab
while (node)
{
wxWindow *child = node->GetData();
if (child->m_isRadioButton)
if (child->IsRadioButton())
{
chief = (wxRadioButton*) child;
if (child->HasFlag(wxRB_GROUP)) break;
if (child->HasFlag(wxRB_GROUP))
break;
}
node = node->GetPrevious();
}