renamed Number method (should be GetCount)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cc4a1ce1f5
commit
3c85ada9db
@ -63,7 +63,7 @@ public:
|
|||||||
|
|
||||||
virtual wxString GetStringSelection() const;
|
virtual wxString GetStringSelection() const;
|
||||||
virtual bool SetStringSelection(const wxString& s);
|
virtual bool SetStringSelection(const wxString& s);
|
||||||
virtual int Number() const { return m_noItems; } ;
|
virtual int GetCount() const { return m_noItems; } ;
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event);
|
||||||
|
|
||||||
int GetNumberOfRowsOrCols() const { return m_noRowsOrCols; }
|
int GetNumberOfRowsOrCols() const { return m_noRowsOrCols; }
|
||||||
|
@ -486,7 +486,7 @@ void wxRadioBoxCallback (Widget w, XtPointer clientData,
|
|||||||
wxRadioBox *item = (wxRadioBox *) clientData;
|
wxRadioBox *item = (wxRadioBox *) clientData;
|
||||||
int sel = -1;
|
int sel = -1;
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < item->Number(); i++)
|
for (i = 0; i < item->GetCount(); i++)
|
||||||
if (item->GetRadioButtons() && ((Widget) (item->GetRadioButtons()[i]) == w))
|
if (item->GetRadioButtons() && ((Widget) (item->GetRadioButtons()[i]) == w))
|
||||||
sel = i;
|
sel = i;
|
||||||
item->SetSel(sel);
|
item->SetSel(sel);
|
||||||
|
Loading…
Reference in New Issue
Block a user