wxCommandEvent::Checked() was renamed to IsChecked() (keeping the old name
too, of course), now works for menu item in wxMSW too and is documented accordingly. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -443,7 +443,7 @@ public:
|
||||
wxString GetString() const { return m_commandString; }
|
||||
|
||||
// Get checkbox value
|
||||
bool Checked() const { return (m_commandInt != 0); }
|
||||
bool IsChecked() const { return m_commandInt != 0; }
|
||||
|
||||
// TRUE if the listbox event was a selection.
|
||||
bool IsSelection() const { return (m_extraLong != 0); }
|
||||
@@ -456,6 +456,10 @@ public:
|
||||
|
||||
void CopyObject(wxObject& obj) const;
|
||||
|
||||
#ifdef WXWIN_COMPATIBILITY_2
|
||||
bool Checked() const { return IsChecked(); }
|
||||
#endif // WXWIN_COMPATIBILITY_2
|
||||
|
||||
public:
|
||||
wxString m_commandString; // String event argument
|
||||
int m_commandInt;
|
||||
|
Reference in New Issue
Block a user