]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/window.cpp
fix printf() argument type in GetOsInfo()
[wxWidgets.git] / src / palmos / window.cpp
CommitLineData
ffecfa5a
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: src/palmos/windows.cpp
3// Purpose: wxWindow
e2731512 4// Author: William Osborne - minimal working wxPalmOS port
ba889513 5// Modified by: Wlodzimierz ABX Skiba - more than minimal functionality
ffecfa5a 6// Created: 10/13/04
e2731512 7// RCS-ID: $Id$
ba889513 8// Copyright: (c) William Osborne, Wlodzimierz Skiba
ffecfa5a
JS
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// ===========================================================================
13// declarations
14// ===========================================================================
15
16// ---------------------------------------------------------------------------
17// headers
18// ---------------------------------------------------------------------------
19
ffecfa5a
JS
20// For compilers that support precompilation, includes "wx.h".
21#include "wx/wxprec.h"
22
23#ifdef __BORLANDC__
24 #pragma hdrstop
25#endif
26
e4db172a
WS
27#include "wx/window.h"
28
ffecfa5a 29#ifndef WX_PRECOMP
ffecfa5a 30 #include "wx/accel.h"
ffecfa5a
JS
31 #include "wx/menu.h"
32 #include "wx/dc.h"
33 #include "wx/dcclient.h"
34 #include "wx/dcmemory.h"
35 #include "wx/utils.h"
36 #include "wx/app.h"
37 #include "wx/layout.h"
38 #include "wx/dialog.h"
39 #include "wx/frame.h"
40 #include "wx/listbox.h"
41 #include "wx/button.h"
42 #include "wx/msgdlg.h"
43 #include "wx/settings.h"
44 #include "wx/statbox.h"
88a7a4e1 45 #include "wx/intl.h"
e4db172a 46 #include "wx/log.h"
fec9cc08 47 #include "wx/textctrl.h"
25466131 48 #include "wx/menuitem.h"
ffecfa5a
JS
49#endif
50
51#if wxUSE_OWNER_DRAWN && !defined(__WXUNIVERSAL__)
52 #include "wx/ownerdrw.h"
53#endif
54
55#include "wx/module.h"
56
57#if wxUSE_DRAG_AND_DROP
58 #include "wx/dnd.h"
59#endif
60
61#if wxUSE_ACCESSIBILITY
62 #include "wx/access.h"
63#endif
64
ffecfa5a
JS
65#if wxUSE_TOOLTIPS
66 #include "wx/tooltip.h"
67#endif
68
69#if wxUSE_CARET
70 #include "wx/caret.h"
71#endif // wxUSE_CARET
72
73#if wxUSE_SPINCTRL
74 #include "wx/spinctrl.h"
75#endif // wxUSE_SPINCTRL
76
ffecfa5a
JS
77#include "wx/notebook.h"
78#include "wx/listctrl.h"
ffecfa5a 79
20bc5ad8
WS
80#include <Window.h>
81
ffecfa5a
JS
82// ---------------------------------------------------------------------------
83// global variables
84// ---------------------------------------------------------------------------
85
86#if wxUSE_MENUS_NATIVE
87wxMenu *wxCurrentPopupMenu = NULL;
88#endif // wxUSE_MENUS_NATIVE
89
ffecfa5a
JS
90// ---------------------------------------------------------------------------
91// private functions
92// ---------------------------------------------------------------------------
93
94// ---------------------------------------------------------------------------
95// event tables
96// ---------------------------------------------------------------------------
97
98// in wxUniv/Palm this class is abstract because it doesn't have DoPopupMenu()
99// method
100#ifdef __WXUNIVERSAL__
101 IMPLEMENT_ABSTRACT_CLASS(wxWindowPalm, wxWindowBase)
102#else // __WXPalm__
103#if wxUSE_EXTENDED_RTTI
104
105// windows that are created from a parent window during its Create method, eg. spin controls in a calendar controls
106// must never been streamed out separately otherwise chaos occurs. Right now easiest is to test for negative ids, as
107// windows with negative ids never can be recreated anyway
108
109bool wxWindowStreamingCallback( const wxObject *object, wxWriter * , wxPersister * , wxxVariantArray & )
110{
111 return false;
112}
113
114IMPLEMENT_DYNAMIC_CLASS_XTI_CALLBACK(wxWindow, wxWindowBase,"wx/window.h", wxWindowStreamingCallback)
115
116// make wxWindowList known before the property is used
117
118wxCOLLECTION_TYPE_INFO( wxWindow* , wxWindowList ) ;
119
120template<> void wxCollectionToVariantArray( wxWindowList const &theList, wxxVariantArray &value)
121{
122 wxListCollectionToVariantArray<wxWindowList::compatibility_iterator>( theList , value ) ;
123}
124
125WX_DEFINE_FLAGS( wxWindowStyle )
126
127wxBEGIN_FLAGS( wxWindowStyle )
128 // new style border flags, we put them first to
129 // use them for streaming out
130
131 wxFLAGS_MEMBER(wxBORDER_SIMPLE)
132 wxFLAGS_MEMBER(wxBORDER_SUNKEN)
133 wxFLAGS_MEMBER(wxBORDER_DOUBLE)
134 wxFLAGS_MEMBER(wxBORDER_RAISED)
135 wxFLAGS_MEMBER(wxBORDER_STATIC)
136 wxFLAGS_MEMBER(wxBORDER_NONE)
4055ed82 137
ffecfa5a
JS
138 // old style border flags
139 wxFLAGS_MEMBER(wxSIMPLE_BORDER)
140 wxFLAGS_MEMBER(wxSUNKEN_BORDER)
141 wxFLAGS_MEMBER(wxDOUBLE_BORDER)
142 wxFLAGS_MEMBER(wxRAISED_BORDER)
143 wxFLAGS_MEMBER(wxSTATIC_BORDER)
144 wxFLAGS_MEMBER(wxBORDER)
145
146 // standard window styles
147 wxFLAGS_MEMBER(wxTAB_TRAVERSAL)
148 wxFLAGS_MEMBER(wxCLIP_CHILDREN)
149 wxFLAGS_MEMBER(wxTRANSPARENT_WINDOW)
150 wxFLAGS_MEMBER(wxWANTS_CHARS)
151 wxFLAGS_MEMBER(wxFULL_REPAINT_ON_RESIZE)
152 wxFLAGS_MEMBER(wxALWAYS_SHOW_SB )
153 wxFLAGS_MEMBER(wxVSCROLL)
154 wxFLAGS_MEMBER(wxHSCROLL)
155
156wxEND_FLAGS( wxWindowStyle )
157
158wxBEGIN_PROPERTIES_TABLE(wxWindow)
159 wxEVENT_PROPERTY( Close , wxEVT_CLOSE_WINDOW , wxCloseEvent)
160 wxEVENT_PROPERTY( Create , wxEVT_CREATE , wxWindowCreateEvent )
161 wxEVENT_PROPERTY( Destroy , wxEVT_DESTROY , wxWindowDestroyEvent )
162 // Always constructor Properties first
163
164 wxREADONLY_PROPERTY( Parent,wxWindow*, GetParent, EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
165 wxPROPERTY( Id,wxWindowID, SetId, GetId, wxID_ANY, 0 /*flags*/ , wxT("Helpstring") , wxT("group") )
166 wxPROPERTY( Position,wxPoint, SetPosition , GetPosition, wxDefaultPosition , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // pos
167 wxPROPERTY( Size,wxSize, SetSize, GetSize, wxDefaultSize , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // size
168 wxPROPERTY( WindowStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // style
169
170 // Then all relations of the object graph
171
172 wxREADONLY_PROPERTY_COLLECTION( Children , wxWindowList , wxWindowBase* , GetWindowChildren , wxPROP_OBJECT_GRAPH /*flags*/ , wxT("Helpstring") , wxT("group"))
173
174 // and finally all other properties
175
176 wxPROPERTY( ExtraStyle , long , SetExtraStyle , GetExtraStyle , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // extstyle
177 wxPROPERTY( BackgroundColour , wxColour , SetBackgroundColour , GetBackgroundColour , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // bg
178 wxPROPERTY( ForegroundColour , wxColour , SetForegroundColour , GetForegroundColour , EMPTY_MACROVALUE , 0 /*flags*/ , wxT("Helpstring") , wxT("group")) // fg
179 wxPROPERTY( Enabled , bool , Enable , IsEnabled , wxxVariant((bool)true) , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
180 wxPROPERTY( Shown , bool , Show , IsShown , wxxVariant((bool)true) , 0 /*flags*/ , wxT("Helpstring") , wxT("group"))
181#if 0
182 // possible property candidates (not in xrc) or not valid in all subclasses
183 wxPROPERTY( Title,wxString, SetTitle, GetTitle, wxT("") )
184 wxPROPERTY( Font , wxFont , SetFont , GetWindowFont , )
185 wxPROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
186 // MaxHeight, Width , MinHeight , Width
187 // TODO switch label to control and title to toplevels
188
189 wxPROPERTY( ThemeEnabled , bool , SetThemeEnabled , GetThemeEnabled , )
190 //wxPROPERTY( Cursor , wxCursor , SetCursor , GetCursor , )
191 // wxPROPERTY( ToolTip , wxString , SetToolTip , GetToolTipText , )
192 wxPROPERTY( AutoLayout , bool , SetAutoLayout , GetAutoLayout , )
193
194
195
196#endif
197wxEND_PROPERTIES_TABLE()
198
199wxBEGIN_HANDLERS_TABLE(wxWindow)
200wxEND_HANDLERS_TABLE()
201
202wxCONSTRUCTOR_DUMMY(wxWindow)
203
204#else
205 IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxWindowBase)
206#endif
207#endif // __WXUNIVERSAL__/__WXPalm__
208
209BEGIN_EVENT_TABLE(wxWindowPalm, wxWindowBase)
210 EVT_ERASE_BACKGROUND(wxWindowPalm::OnEraseBackground)
ffecfa5a
JS
211 EVT_INIT_DIALOG(wxWindowPalm::OnInitDialog)
212END_EVENT_TABLE()
213
214// ===========================================================================
215// implementation
216// ===========================================================================
217
218// ---------------------------------------------------------------------------
219// wxWindow utility functions
220// ---------------------------------------------------------------------------
221
222// Find an item given the MS Windows id
223wxWindow *wxWindowPalm::FindItem(long id) const
224{
225 return NULL;
226}
227
228// Find an item given the MS Windows handle
324eeecb 229wxWindow *wxWindowPalm::FindItemByWinHandle(WXWINHANDLE handle, bool controlOnly) const
ffecfa5a 230{
324eeecb 231 // TODO
ffecfa5a
JS
232 return NULL;
233}
234
34deaa93
WS
235bool wxGetKeyState(wxKeyCode key)
236{
237 wxASSERT_MSG(key != WXK_LBUTTON && key != WXK_RBUTTON && key !=
238 WXK_MBUTTON, wxT("can't use wxGetKeyState() for mouse buttons"));
239
240 // TODO
241
242 return false;
243}
244
ffecfa5a
JS
245// ----------------------------------------------------------------------------
246// constructors and such
247// ----------------------------------------------------------------------------
248
249void wxWindowPalm::Init()
250{
324eeecb 251 m_handle = 0;
ffecfa5a
JS
252}
253
254// Destructor
255wxWindowPalm::~wxWindowPalm()
256{
257}
258
259// real construction (Init() must have been called before!)
260bool wxWindowPalm::Create(wxWindow *parent,
324eeecb
WS
261 wxWindowID id,
262 const wxPoint& pos,
263 const wxSize& size,
264 long style,
265 const wxString& name)
ffecfa5a 266{
a152561c
WS
267 wxCHECK_MSG( parent, false, wxT("can't create wxWindow without parent") );
268
269 if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
270 return false;
271
272 parent->AddChild(this);
273
274 InheritAttributes();
275
276 return true;
ffecfa5a
JS
277}
278
20bc5ad8 279WXFORMPTR wxWindowPalm::GetFormPtr()
ffecfa5a
JS
280{
281 return FrameForm;
282}
20bc5ad8 283void wxWindowPalm::SetFormPtr(WXFORMPTR FormPtr)
ffecfa5a 284{
20bc5ad8 285 FrameForm = FormPtr;
ffecfa5a
JS
286}
287
288// ---------------------------------------------------------------------------
289// basic operations
290// ---------------------------------------------------------------------------
291
292void wxWindowPalm::SetFocus()
293{
294}
295
296void wxWindowPalm::SetFocusFromKbd()
297{
298}
299
300// Get the window with the focus
301wxWindow *wxWindowBase::DoFindFocus()
302{
303 return NULL;
304}
305
306bool wxWindowPalm::Enable(bool enable)
307{
308 return false;
309}
310
311bool wxWindowPalm::Show(bool show)
312{
313 return false;
314}
315
316// Raise the window to the top of the Z order
317void wxWindowPalm::Raise()
318{
319}
320
321// Lower the window to the bottom of the Z order
322void wxWindowPalm::Lower()
323{
324}
325
0ab48d64 326void wxWindowPalm::SetLabel( const wxString& WXUNUSED(label))
ffecfa5a
JS
327{
328}
329
0ab48d64 330wxString wxWindowPalm::GetLabel() const
ffecfa5a 331{
db101bd3 332 return wxEmptyString;
ffecfa5a
JS
333}
334
335void wxWindowPalm::DoCaptureMouse()
336{
337}
338
339void wxWindowPalm::DoReleaseMouse()
340{
341}
342
343/* static */ wxWindow *wxWindowBase::GetCapture()
344{
345 return NULL;
346}
347
348bool wxWindowPalm::SetFont(const wxFont& font)
349{
350 return false;
351}
352bool wxWindowPalm::SetCursor(const wxCursor& cursor)
353{
354 return false;
355}
356
357void wxWindowPalm::WarpPointer (int x, int y)
358{
359}
360
361// ---------------------------------------------------------------------------
362// scrolling stuff
363// ---------------------------------------------------------------------------
364
365// convert wxHORIZONTAL/wxVERTICAL to SB_HORZ/SB_VERT
366static inline int wxDirToWinStyle(int orient)
367{
368 return 0;
369}
370
371int wxWindowPalm::GetScrollPos(int orient) const
372{
373 return 0;
374}
375
376// This now returns the whole range, not just the number
377// of positions that we can scroll.
378int wxWindowPalm::GetScrollRange(int orient) const
379{
380 return 0;
381}
382
383int wxWindowPalm::GetScrollThumb(int orient) const
384{
385 return 0;
386}
387
388void wxWindowPalm::SetScrollPos(int orient, int pos, bool refresh)
389{
390}
391
392// New function that will replace some of the above.
393void wxWindowPalm::SetScrollbar(int orient,
394 int pos,
395 int pageSize,
396 int range,
397 bool refresh)
398{
399}
400
401void wxWindowPalm::ScrollWindow(int dx, int dy, const wxRect *prect)
402{
403}
404
405bool wxWindowPalm::ScrollLines(int lines)
406{
407 return false;
408}
409
410bool wxWindowPalm::ScrollPages(int pages)
411{
412 return false;
413}
414
ffecfa5a
JS
415// ----------------------------------------------------------------------------
416// Style handling
417// ----------------------------------------------------------------------------
418
ffecfa5a
JS
419WXDWORD wxWindowPalm::PalmGetStyle(long flags, WXDWORD *exstyle) const
420{
421 return 0;
422}
423
424// Setup background and foreground colours correctly
425void wxWindowPalm::SetupColours()
426{
427}
428
ffecfa5a
JS
429void wxWindowPalm::OnInternalIdle()
430{
431}
432
433// Set this window to be the child of 'parent'.
434bool wxWindowPalm::Reparent(wxWindowBase *parent)
435{
436 return false;
437}
438
439void wxWindowPalm::Freeze()
440{
441}
442
443void wxWindowPalm::Thaw()
444{
445}
446
447void wxWindowPalm::Refresh(bool eraseBack, const wxRect *rect)
448{
20bc5ad8 449 WinHandle handle = (WinHandle)GetWinHandle();
324eeecb
WS
450 if(handle)
451 {
452 if(rect)
453 {
454 RectangleType dirtyRect;
d2893292
WS
455 dirtyRect.topLeft.x = rect->GetX() - 1;
456 dirtyRect.topLeft.y = rect->GetY() - 1;
457 dirtyRect.extent.x = rect->GetWidth() + 1;
458 dirtyRect.extent.y = rect->GetHeight() + 1;
324eeecb
WS
459 WinInvalidateRect(handle, &dirtyRect);
460 }
461 else
462 {
463 WinInvalidateWindow(handle);
464 }
465 }
ffecfa5a
JS
466}
467
468void wxWindowPalm::Update()
469{
470}
471
472// ---------------------------------------------------------------------------
473// drag and drop
474// ---------------------------------------------------------------------------
475
476
477#if wxUSE_DRAG_AND_DROP
478void wxWindowPalm::SetDropTarget(wxDropTarget *pDropTarget)
479{
480}
481#endif // wxUSE_DRAG_AND_DROP
482
483// old style file-manager drag&drop support: we retain the old-style
484// DragAcceptFiles in parallel with SetDropTarget.
485void wxWindowPalm::DragAcceptFiles(bool accept)
486{
487}
488
489// ----------------------------------------------------------------------------
490// tooltips
491// ----------------------------------------------------------------------------
492
493#if wxUSE_TOOLTIPS
494
495void wxWindowPalm::DoSetToolTip(wxToolTip *tooltip)
496{
497}
498
499#endif // wxUSE_TOOLTIPS
500
501// ---------------------------------------------------------------------------
502// moving and resizing
503// ---------------------------------------------------------------------------
504
505// Get total size
506void wxWindowPalm::DoGetSize(int *x, int *y) const
507{
508}
509
510// Get size *available for subwindows* i.e. excluding menu bar etc.
511void wxWindowPalm::DoGetClientSize(int *x, int *y) const
512{
513}
514
515void wxWindowPalm::DoGetPosition(int *x, int *y) const
516{
d2893292
WS
517 if(x)
518 *x = 0;
519 if(y)
520 *y = 0;
ffecfa5a
JS
521}
522
523void wxWindowPalm::DoScreenToClient(int *x, int *y) const
524{
525}
526
527void wxWindowPalm::DoClientToScreen(int *x, int *y) const
528{
529}
530
531void wxWindowPalm::DoMoveWindow(int x, int y, int width, int height)
532{
533}
534
535// set the size of the window: if the dimensions are positive, just use them,
536// but if any of them is equal to -1, it means that we must find the value for
537// it ourselves (unless sizeFlags contains wxSIZE_ALLOW_MINUS_ONE flag, in
538// which case -1 is a valid value for x and y)
539//
540// If sizeFlags contains wxSIZE_AUTO_WIDTH/HEIGHT flags (default), we calculate
541// the width/height to best suit our contents, otherwise we reuse the current
542// width/height
543void wxWindowPalm::DoSetSize(int x, int y, int width, int height, int sizeFlags)
544{
324eeecb
WS
545 // get the current size and position...
546 int currentX, currentY;
547 GetPosition(&currentX, &currentY);
548 int currentW,currentH;
549 GetSize(&currentW, &currentH);
550
551 // ... and don't do anything (avoiding flicker) if it's already ok
552 if ( x == currentX && y == currentY &&
553 width == currentW && height == currentH )
554 {
555 return;
556 }
557
558 if ( x == wxDefaultCoord && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) )
559 x = currentX;
560 if ( y == wxDefaultCoord && !(sizeFlags & wxSIZE_ALLOW_MINUS_ONE) )
561 y = currentY;
562
563 AdjustForParentClientOrigin(x, y, sizeFlags);
564
565 wxSize size = wxDefaultSize;
566 if ( width == wxDefaultCoord )
567 {
568 if ( sizeFlags & wxSIZE_AUTO_WIDTH )
569 {
570 size = DoGetBestSize();
571 width = size.x;
572 }
573 else
574 {
575 // just take the current one
576 width = currentW;
577 }
578 }
579
580 if ( height == wxDefaultCoord )
581 {
582 if ( sizeFlags & wxSIZE_AUTO_HEIGHT )
583 {
584 if ( size.x == wxDefaultCoord )
585 {
586 size = DoGetBestSize();
587 }
588 //else: already called DoGetBestSize() above
589
590 height = size.y;
591 }
592 else
593 {
594 // just take the current one
595 height = currentH;
596 }
597 }
598
599 DoMoveWindow(x, y, width, height);
ffecfa5a
JS
600}
601
602void wxWindowPalm::DoSetClientSize(int width, int height)
603{
604}
605
ffecfa5a
JS
606// ---------------------------------------------------------------------------
607// text metrics
608// ---------------------------------------------------------------------------
609
610int wxWindowPalm::GetCharHeight() const
611{
612 return 0;
613}
614
615int wxWindowPalm::GetCharWidth() const
616{
617 return 0;
618}
619
620void wxWindowPalm::GetTextExtent(const wxString& string,
621 int *x, int *y,
622 int *descent, int *externalLeading,
623 const wxFont *theFont) const
624{
625}
626
627// ---------------------------------------------------------------------------
628// popup menu
629// ---------------------------------------------------------------------------
630
631#if wxUSE_MENUS_NATIVE
632
633// yield for WM_COMMAND events only, i.e. process all WM_COMMANDs in the queue
634// immediately, without waiting for the next event loop iteration
635//
636// NB: this function should probably be made public later as it can almost
637// surely replace wxYield() elsewhere as well
638static void wxYieldForCommandsOnly()
639{
640}
641
642bool wxWindowPalm::DoPopupMenu(wxMenu *menu, int x, int y)
643{
644 return false;
645}
646
647#endif // wxUSE_MENUS_NATIVE
648
ffecfa5a
JS
649// ----------------------------------------------------------------------------
650// wxWindow <-> HWND map
651// ----------------------------------------------------------------------------
652
653wxWinHashTable *wxWinHandleHash = NULL;
654
324eeecb 655wxWindow *wxFindWinFromWinHandle(WXWINHANDLE handle)
ffecfa5a 656{
324eeecb 657 // TODO
ffecfa5a
JS
658 return NULL;
659}
660
661void wxRemoveHandleAssociation(wxWindowPalm *win)
662{
663}
664
665// ----------------------------------------------------------------------------
324eeecb 666// various Palm specific class dependent functions
ffecfa5a
JS
667// ----------------------------------------------------------------------------
668
ffecfa5a 669bool wxWindowPalm::PalmGetCreateWindowCoords(const wxPoint& pos,
324eeecb
WS
670 const wxSize& size,
671 int& x, int& y,
672 int& w, int& h) const
ffecfa5a
JS
673{
674 return false;
675}
676
ffecfa5a 677bool wxWindowPalm::PalmCreate(const wxChar *wclass,
324eeecb
WS
678 const wxChar *title,
679 const wxPoint& pos,
680 const wxSize& size,
681 WXDWORD style,
682 WXDWORD extendedStyle)
ffecfa5a
JS
683{
684 return false;
685}
686
687// ===========================================================================
688// Palm message handlers
689// ===========================================================================
690
ffecfa5a
JS
691// ---------------------------------------------------------------------------
692// painting
693// ---------------------------------------------------------------------------
694
ffecfa5a
JS
695// Can be called from an application's OnPaint handler
696void wxWindowPalm::OnPaint(wxPaintEvent& event)
697{
698}
699
ffecfa5a
JS
700void wxWindowPalm::OnEraseBackground(wxEraseEvent& event)
701{
702}
703
704// ---------------------------------------------------------------------------
705// moving and resizing
706// ---------------------------------------------------------------------------
707
ffecfa5a
JS
708bool wxWindowPalm::HandleMove(int x, int y)
709{
710 return false;
711}
712
713bool wxWindowPalm::HandleMoving(wxRect& rect)
714{
715 return false;
716}
717
ffecfa5a
JS
718// ---------------------------------------------------------------------------
719// joystick
720// ---------------------------------------------------------------------------
721
722bool wxWindowPalm::HandleJoystickEvent(WXUINT msg, int x, int y, WXUINT flags)
723{
724 return false;
725}
726
727// ---------------------------------------------------------------------------
728// scrolling
729// ---------------------------------------------------------------------------
730
731bool wxWindowPalm::PalmOnScroll(int orientation, WXWORD wParam,
324eeecb 732 WXWORD pos, WXWINHANDLE control)
4055ed82 733{
324eeecb 734 // TODO
ffecfa5a
JS
735 return false;
736}
737
738// ===========================================================================
739// global functions
740// ===========================================================================
741
324eeecb 742void wxGetCharSize(WXWINHANDLE wnd, int *x, int *y, const wxFont *the_font)
ffecfa5a 743{
324eeecb 744 // TODO
ffecfa5a
JS
745}
746
747#if wxUSE_HOTKEY
748
749bool wxWindowPalm::RegisterHotKey(int hotkeyId, int modifiers, int keycode)
750{
751 return false;
752}
753
754bool wxWindowPalm::UnregisterHotKey(int hotkeyId)
755{
756 return false;
757}
758
ffecfa5a 759#endif // wxUSE_HOTKEY