X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffecfa5aeb540b54914739dbb8603edbbd4c00a0..c8e1af672f46e93ae2fe6d7f9d5b35a3d8d49c16:/include/wx/palmos/radiobox.h diff --git a/include/wx/palmos/radiobox.h b/include/wx/palmos/radiobox.h index fbb7560f32..11eef5e47f 100644 --- a/include/wx/palmos/radiobox.h +++ b/include/wx/palmos/radiobox.h @@ -1,11 +1,11 @@ ///////////////////////////////////////////////////////////////////////////// // Name: wx/palmos/radiobox.h // Purpose: wxRadioBox class -// Author: William Osborne -// Modified by: +// Author: William Osborne - minimal working wxPalmOS port +// Modified by: Wlodzimierz ABX Skiba - native wxRadioBox implementation // Created: 10/13/04 -// RCS-ID: $Id: -// Copyright: (c) William Osborne +// RCS-ID: $Id$ +// Copyright: (c) William Osborne, Wlodzimierz Skiba // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -68,6 +68,7 @@ public: long style = wxRA_HORIZONTAL, const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); + bool Create(wxWindow *parent, wxWindowID id, const wxString& title, @@ -85,14 +86,14 @@ public: virtual int GetCount() const; virtual wxString GetString(int n) const; virtual void SetString(int n, const wxString& label); - virtual void Enable(int n, bool enable = TRUE); - virtual void Show(int n, bool show = TRUE); + virtual void Enable(int n, bool enable = true); + virtual void Show(int n, bool show = true); virtual int GetColumnCount() const; virtual int GetRowCount() const; - virtual bool Show(bool show = TRUE); + virtual bool Show(bool show = true); void SetFocus(); - virtual bool Enable(bool enable = TRUE); + virtual bool Enable(bool enable = true); void SetLabelFont(const wxFont& WXUNUSED(font)) {}; void SetButtonFont(const wxFont& font) { SetFont(font); } @@ -104,20 +105,8 @@ public: // implementation only from now on // ------------------------------- - virtual bool MSWCommand(WXUINT param, WXWORD id); - - // FIXME: are they used? missing "Do" prefix? - void GetSize(int *x, int *y) const; - void GetPosition(int *x, int *y) const; - virtual bool SetFont(const wxFont& font); - WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam); - virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, - WXUINT message, - WXWPARAM wParam, WXLPARAM lParam); - WXHWND *GetRadioButtons() const { return m_radioButtons; } - bool ContainsHWND(WXHWND hWnd) const; void SendNotificationEvent(); // get the number of buttons per column/row @@ -131,16 +120,12 @@ protected: // we can't compute our best size before the items are added to the control virtual void SetInitialBestSize(const wxSize& WXUNUSED(size)) { } - // subclass one radio button - void SubclassRadioButton(WXHWND hWndBtn); - // get the max size of radio buttons wxSize GetMaxButtonSize() const; // get the total size occupied by the radio box buttons wxSize GetTotalButtonSize(const wxSize& sizeBtn) const; - WXHWND * m_radioButtons; int m_majorDim; int * m_radioWidth; // for bitmaps int * m_radioHeight;