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