]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/palmos/radiobut.h
silently ignore wxUSE_UNICODE_MSLU in non-Unicode builds (see also rev 1.106 of wx...
[wxWidgets.git] / include / wx / palmos / radiobut.h
index 954295f422d28d4f8f9a12df248c8aa1fabce68a..5e0040e738be36209c4185f87dde556236022e85 100644 (file)
@@ -2,10 +2,10 @@
 // Name:        wx/palmos/radiobut.h
 // Purpose:     wxRadioButton class
 // Author:      William Osborne - minimal working wxPalmOS port
-// Modified by:
+// Modified by: Wlodzimierz ABX Skiba - native wxRadioButton implementation
 // Created:     10/13/04
 // RCS-ID:      $Id$
-// Copyright:   (c) William Osborne
+// Copyright:   (c) William Osborne, Wlodzimierz Skiba
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -50,11 +50,11 @@ public:
     virtual bool GetValue() const;
 
     // implementation only from now on
-    virtual bool MSWCommand(WXUINT param, WXWORD id);
     virtual void Command(wxCommandEvent& event);
-    virtual void ApplyParentThemeBackground(const wxColour& bg)
-        { SetBackgroundColour(bg); }
+    void SetGroup(uint8_t group);
 
+    // send a notification event, return true if processed
+    bool SendClickEvent();
 
 protected:
     virtual wxSize DoGetBestSize() const;
@@ -63,10 +63,10 @@ private:
     // common part of all ctors
     void Init();
 
-    // we need to store the state internally as the result of GetValue()
-    // sometimes gets out of sync in WM_COMMAND handler
-    bool m_isChecked;
+    uint8_t m_groupID;
 
+    // pushButtonCtl or checkboxCtl
+    ControlStyleType m_radioStyle;
     DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton)
 };