X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8dda225b3fcb6ac8c0860b2e81dba37862adbed..3903f408241aedc3b2f5e24349d0ac939ba9164c:/wxPython/src/_radio.i?ds=sidebyside diff --git a/wxPython/src/_radio.i b/wxPython/src/_radio.i index 35aaa0f3b3..a04aa32bdf 100644 --- a/wxPython/src/_radio.i +++ b/wxPython/src/_radio.i @@ -68,23 +68,32 @@ public: %pythoncode { SetItemLabel = SetString }; // change the individual radio button state - %Rename(EnableItem, virtual void, Enable(int n, bool enable = true)); - %Rename(ShowItem, virtual void, Show(int n, bool show = true)); + %Rename(EnableItem, virtual void, Enable(unsigned int n, bool enable = true)); + %Rename(ShowItem, virtual void, Show(unsigned int n, bool show = true)); + virtual bool IsItemEnabled(unsigned int n) const; + virtual bool IsItemShown(unsigned int n) const; -#ifndef __WXGTK__ // layout parameters - virtual int GetColumnCount() const; - virtual int GetRowCount() const; + virtual unsigned int GetColumnCount() const; + virtual unsigned int GetRowCount() const; // return the item above/below/to the left/right of the given one int GetNextItem(int item, wxDirection dir, long style) const; -#else - %extend { - int GetColumnCount() const { return -1; } - int GetRowCount() const { return -1; } - int GetNextItem(int item, wxDirection dir, long style) const { return -1; } - } -#endif + + // set the tooltip text for a radio item, empty string unsets any tooltip + void SetItemToolTip(unsigned int item, const wxString& text); + + // get the individual items tooltip; returns NULL if none + wxToolTip *GetItemToolTip(unsigned int item) const; + + // set helptext for a particular item, pass an empty string to erase it + void SetItemHelpText(unsigned int n, const wxString& helpText); + + // retrieve helptext for a particular item, empty string means no help text + wxString GetItemHelpText(unsigned int n) const; + +// Hmmm... This is protected on wxMSW. +// virtual int GetItemFromPoint(const wxPoint& pt) const; // bool IsValid(int n) const; ** not public