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