#include "wx/button.h"
#include "wx/checkbox.h"
#include "wx/radiobut.h"
+ #include "wx/slider.h"
+ #include "wx/toplevel.h"
#endif
-#include "wx/toplevel.h"
#include "wx/tglbtn.h"
-#include "wx/slider.h"
#include <Control.h>
#include <Form.h>
-#include <StatusBar.h>
+#ifdef __WXPALMOS6__
+ #include <StatusBar.h>
+#else
+ #include <PenInputMgr.h>
+#endif // __WXPALMOS6__
// ----------------------------------------------------------------------------
// wxWin macros
(void **)&form,
GetId(),
(ControlStyleType)style,
- wxEmptyString,
+ NULL,
x,
y,
w,
m_palmControl = true;
- SetInitialBestSize(size);
+ SetInitialSize(size);
SetLabel(label);
Show();
return true;
m_palmField = true;
- SetInitialBestSize(size);
+ SetInitialSize(size);
SetLabel(label);
Show();
return true;
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());
return wxEmptyString;
return CtlGetLabel(control);
}
-
+#if 0
wxString wxControl::GetLabel()
{
if(IsPalmField())
return wxEmptyString;
}
-
+#endif
/* static */ wxVisualAttributes
wxControl::GetClassDefaultAttributes(wxWindowVariant WXUNUSED(variant))
{
bool wxControl::ProcessCommand(wxCommandEvent& event)
{
- return GetEventHandler()->ProcessEvent(event);
+ return HandleWindowEvent(event);
}
void wxControl::OnEraseBackground(wxEraseEvent& event)