]> git.saurik.com Git - wxWidgets.git/blobdiff - src/palmos/button.cpp
Added wxUSE_MENUS_NATIVE wrapper around DoPopupMenu to match header
[wxWidgets.git] / src / palmos / button.cpp
index a27f123b1e7dfb3912a5703f0a02dc69ae81a781..c72fc9402ff7ee23b75c19a4ff8e14cea4aabe83 100644 (file)
@@ -2,10 +2,10 @@
 // Name:        src/palmos/button.cpp
 // Purpose:     wxButton
 // Author:      William Osborne - minimal working wxPalmOS port
-// Modified by:
+// Modified by: Wlodzimierz ABX Skiba - native wxButton implementation
 // Created:     10/13/04
 // RCS-ID:      $Id$
-// Copyright:   (c) William Osborne
+// Copyright:   (c) William Osborne, Wlodzimierz Skiba
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
@@ -40,8 +40,6 @@
     #include "wx/dcscreen.h"
 #endif
 
-#include "wx/palmos/private.h"
-
 // ----------------------------------------------------------------------------
 // macros
 // ----------------------------------------------------------------------------
@@ -128,23 +126,14 @@ bool wxButton::Create(wxWindow *parent,
                       const wxValidator& validator,
                       const wxString& name)
 {
-    // remember about stock IDs
-    return false;
+    wxControl::PalmCreateControl(buttonCtl, parent, id, label, pos, size);
+    return true;
 }
 
 wxButton::~wxButton()
 {
 }
 
-// ----------------------------------------------------------------------------
-// flags
-// ----------------------------------------------------------------------------
-
-WXDWORD wxButton::MSWGetStyle(long style, WXDWORD *exstyle) const
-{
-    return 0;
-}
-
 // ----------------------------------------------------------------------------
 // size management including autosizing
 // ----------------------------------------------------------------------------
@@ -191,14 +180,5 @@ void wxButton::Command(wxCommandEvent & event)
 {
 }
 
-// ----------------------------------------------------------------------------
-// event/message handlers
-// ----------------------------------------------------------------------------
-
-bool wxButton::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
-{
-    return false;
-}
-
 #endif // wxUSE_BUTTON