]> 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 3e5201b5c4497b180cc3d7d4d250cc87db18fa58..c72fc9402ff7ee23b75c19a4ff8e14cea4aabe83 100644 (file)
@@ -1,11 +1,11 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        palmos/button.cpp
+// Name:        src/palmos/button.cpp
 // Purpose:     wxButton
-// Author:      William Osborne
-// Modified by:
+// Author:      William Osborne - minimal working wxPalmOS port
+// Modified by: Wlodzimierz ABX Skiba - native wxButton implementation
 // Created:     10/13/04
-// RCS-ID:      $Id:
-// Copyright:   (c) William Osborne
+// RCS-ID:      $Id$
+// 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