X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e273151278d28cceefe6eee8c49bc6915306805d..b4a5e7b6f19bcef7449c87d46ab46af1b4aaec6b:/src/palmos/radiobut.cpp diff --git a/src/palmos/radiobut.cpp b/src/palmos/radiobut.cpp index 20135cce58..d7c45e609b 100644 --- a/src/palmos/radiobut.cpp +++ b/src/palmos/radiobut.cpp @@ -2,10 +2,10 @@ // Name: src/palmos/radiobut.cpp // Purpose: wxRadioButton // 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 ///////////////////////////////////////////////////////////////////////////// @@ -36,8 +36,6 @@ #include "wx/dcscreen.h" #endif -#include "wx/palmos/private.h" - // ============================================================================ // wxRadioButton implementation // ============================================================================ @@ -115,7 +113,8 @@ bool wxRadioButton::Create(wxWindow *parent, const wxValidator& validator, const wxString& name) { - return false; + wxControl::PalmCreateControl(pushButtonCtl, parent, id, label, pos, size); + return true; } // ---------------------------------------------------------------------------- @@ -124,11 +123,12 @@ bool wxRadioButton::Create(wxWindow *parent, void wxRadioButton::SetValue(bool value) { + SetBoolValue(value); } bool wxRadioButton::GetValue() const { - return false; + return GetBoolValue(); } // ---------------------------------------------------------------------------- @@ -139,11 +139,6 @@ void wxRadioButton::Command (wxCommandEvent& event) { } -bool wxRadioButton::MSWCommand(WXUINT param, WXWORD WXUNUSED(id)) -{ - return false; -} - // ---------------------------------------------------------------------------- // wxRadioButton geometry // ----------------------------------------------------------------------------