projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stdobjects is used for both objects and pointers
[wxWidgets.git]
/
src
/
palmos
/
control.cpp
diff --git
a/src/palmos/control.cpp
b/src/palmos/control.cpp
index fea796246a74c2045c11216d91e3a2b21f6fe800..39033e863d4d3c87d377e345e2d8959f6ece8a15 100644
(file)
--- a/
src/palmos/control.cpp
+++ b/
src/palmos/control.cpp
@@
-26,6
+26,8
@@
#if wxUSE_CONTROLS
#if wxUSE_CONTROLS
+#include "wx/control.h"
+
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
#ifndef WX_PRECOMP
#include "wx/event.h"
#include "wx/app.h"
@@
-33,18
+35,21
@@
#include "wx/log.h"
#include "wx/settings.h"
#include "wx/button.h"
#include "wx/log.h"
#include "wx/settings.h"
#include "wx/button.h"
+ #include "wx/checkbox.h"
+ #include "wx/radiobut.h"
+ #include "wx/slider.h"
+ #include "wx/toplevel.h"
#endif
#endif
-#include "wx/control.h"
-#include "wx/toplevel.h"
-#include "wx/checkbox.h"
#include "wx/tglbtn.h"
#include "wx/tglbtn.h"
-#include "wx/radiobut.h"
-#include "wx/slider.h"
#include <Control.h>
#include <Form.h>
#include <Control.h>
#include <Form.h>
-#include <StatusBar.h>
+#ifdef __WXPALMOS6__
+ #include <StatusBar.h>
+#else
+ #include <PenInputMgr.h>
+#endif // __WXPALMOS6__
// ----------------------------------------------------------------------------
// wxWin macros
// ----------------------------------------------------------------------------
// wxWin macros
@@
-136,7
+141,7
@@
bool wxControl::PalmCreateControl(int style,
(void **)&form,
GetId(),
(ControlStyleType)style,
(void **)&form,
GetId(),
(ControlStyleType)style,
-
wxEmptyString
,
+
NULL
,
x,
y,
w,
x,
y,
w,
@@
-151,7
+156,7
@@
bool wxControl::PalmCreateControl(int style,
m_palmControl = true;
m_palmControl = true;
- SetInitial
Best
Size(size);
+ SetInitialSize(size);
SetLabel(label);
Show();
return true;
SetLabel(label);
Show();
return true;
@@
-201,7
+206,7
@@
bool wxControl::PalmCreateField(const wxString& label,
m_palmField = true;
m_palmField = true;
- SetInitial
Best
Size(size);
+ SetInitialSize(size);
SetLabel(label);
Show();
return true;
SetLabel(label);
Show();
return true;
@@
-420,7
+425,7
@@
void wxControl::SetControlLabel(const wxString& label)
ControlType* control = (ControlType*)GetObjectPtr();
if(control==NULL)
return;
ControlType* control = (ControlType*)GetObjectPtr();
if(control==NULL)
return;
- CtlSetLabel(control,
wxEmptyString
);
+ CtlSetLabel(control,
""
);
m_label = label;
if(!m_label.empty())
CtlSetLabel(control,m_label.c_str());
m_label = label;
if(!m_label.empty())
CtlSetLabel(control,m_label.c_str());
@@
-451,7
+456,7
@@
wxString wxControl::GetControlLabel()
return wxEmptyString;
return CtlGetLabel(control);
}
return wxEmptyString;
return CtlGetLabel(control);
}
-
+#if 0
wxString wxControl::GetLabel()
{
if(IsPalmField())
wxString wxControl::GetLabel()
{
if(IsPalmField())
@@
-463,7
+468,7
@@
wxString wxControl::GetLabel()
return wxEmptyString;
}
return wxEmptyString;
}
-
+#endif
/* static */ wxVisualAttributes
wxControl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
{
/* static */ wxVisualAttributes
wxControl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
{
@@
-500,7
+505,7
@@
wxControl::GetCompositeControlsDefaultAttributes(wxWindowVariant WXUNUSED(varian
bool wxControl::ProcessCommand(wxCommandEvent& event)
{
bool wxControl::ProcessCommand(wxCommandEvent& event)
{
- return
GetEventHandler()->Process
Event(event);
+ return
HandleWindow
Event(event);
}
void wxControl::OnEraseBackground(wxEraseEvent& event)
}
void wxControl::OnEraseBackground(wxEraseEvent& event)