X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ffecfa5aeb540b54914739dbb8603edbbd4c00a0..8e1611724c42fdc3789032a9ac932be099440676:/src/palmos/radiobox.cpp?ds=sidebyside diff --git a/src/palmos/radiobox.cpp b/src/palmos/radiobox.cpp index c7674fd5ba..adc3f453bb 100644 --- a/src/palmos/radiobox.cpp +++ b/src/palmos/radiobox.cpp @@ -1,11 +1,11 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: palmos/radiobox.cpp +// Name: src/palmos/radiobox.cpp // Purpose: wxRadioBox implementation -// 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 ///////////////////////////////////////////////////////////////////////////// @@ -38,8 +38,6 @@ #include "wx/log.h" #endif -#include "wx/palmos/private.h" - #if wxUSE_TOOLTIPS #include "wx/tooltip.h" #endif // wxUSE_TOOLTIPS @@ -57,7 +55,7 @@ wxBEGIN_FLAGS( wxRadioBoxStyle ) wxFLAGS_MEMBER(wxBORDER_RAISED) wxFLAGS_MEMBER(wxBORDER_STATIC) wxFLAGS_MEMBER(wxBORDER_NONE) - + // old style border flags wxFLAGS_MEMBER(wxSIMPLE_BORDER) wxFLAGS_MEMBER(wxSUNKEN_BORDER) @@ -102,19 +100,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl) item */ -#define RADIOBTN_PARENT_IS_RADIOBOX 0 - -// --------------------------------------------------------------------------- -// private functions -// --------------------------------------------------------------------------- - -// --------------------------------------------------------------------------- -// global vars -// --------------------------------------------------------------------------- - -// the pointer to standard radio button wnd proc -static WXFARPROC s_wndprocRadioBtn = (WXFARPROC)NULL; - // =========================================================================== // implementation // =========================================================================== @@ -150,11 +135,6 @@ int wxRadioBox::GetNumHor() const return 0; } -bool wxRadioBox::MSWCommand(WXUINT cmd, WXWORD id) -{ - return FALSE; -} - // Radio box item wxRadioBox::wxRadioBox() { @@ -211,7 +191,7 @@ int wxRadioBox::GetSelection() const wxString wxRadioBox::GetString(int item) const { wxString ret; - + return ret; } @@ -239,14 +219,6 @@ void wxRadioBox::DoSetSize(int x, int y, int width, int height, int sizeFlags) { } -void wxRadioBox::GetSize(int *width, int *height) const -{ -} - -void wxRadioBox::GetPosition(int *x, int *y) const -{ -} - void wxRadioBox::SetFocus() { } @@ -272,19 +244,10 @@ void wxRadioBox::Show(int item, bool show) { } -bool wxRadioBox::ContainsHWND(WXHWND hWnd) const -{ - return false; -} - void wxRadioBox::Command(wxCommandEvent & event) { } -void wxRadioBox::SubclassRadioButton(WXHWND hWndBtn) -{ -} - void wxRadioBox::SendNotificationEvent() { } @@ -294,28 +257,4 @@ bool wxRadioBox::SetFont(const wxFont& font) return false; } -// ---------------------------------------------------------------------------- -// our window proc -// ---------------------------------------------------------------------------- - -WXLRESULT wxRadioBox::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) -{ - return 0; -} - -WXHBRUSH wxRadioBox::OnCtlColor(WXHDC pDC, WXHWND WXUNUSED(pWnd), WXUINT WXUNUSED(nCtlColor), -#if wxUSE_CTL3D - WXUINT message, - WXWPARAM wParam, - WXLPARAM lParam -#else - WXUINT WXUNUSED(message), - WXWPARAM WXUNUSED(wParam), - WXLPARAM WXUNUSED(lParam) -#endif - ) -{ - return (WXHBRUSH)0; -} - #endif // wxUSE_RADIOBOX