added wxRadioBox::IsItemEnabled/Shown() (for MSW only for now, other platforms to come); corrected Enable/Show() return values
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -27,10 +27,15 @@ extern WXDLLEXPORT_DATA(const wxChar*) wxRadioBoxNameStr;
|
||||
class WXDLLEXPORT wxRadioBoxBase : public wxItemContainerImmutable
|
||||
{
|
||||
public:
|
||||
// change the individual radio button state
|
||||
// change/query the individual radio button state
|
||||
virtual bool Enable(int n, bool enable = true) = 0;
|
||||
virtual bool Show(int n, bool show = true) = 0;
|
||||
|
||||
// NB: these functions are stubbed here for now but should become pure
|
||||
// virtual once all ports implement them
|
||||
virtual bool IsItemEnabled(int WXUNUSED(n)) const { return true; }
|
||||
virtual bool IsItemShown(int WXUNUSED(n)) const { return true; }
|
||||
|
||||
// layout parameters
|
||||
virtual int GetColumnCount() const = 0;
|
||||
virtual int GetRowCount() const = 0;
|
||||
@@ -38,6 +43,7 @@ public:
|
||||
// return the item above/below/to the left/right of the given one
|
||||
int GetNextItem(int item, wxDirection dir, long style) const;
|
||||
|
||||
|
||||
// deprecated functions
|
||||
// --------------------
|
||||
|
||||
|
Reference in New Issue
Block a user