]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/windows.i
Added typemap for wxArrayString
[wxWidgets.git] / wxPython / src / windows.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: windows.i
3 // Purpose: SWIG definitions of various window classes
4 //
5 // Author: Robin Dunn
6 //
7 // Created: 6/24/97
8 // RCS-ID: $Id$
9 // Copyright: (c) 1998 by Total Control Software
10 // Licence: wxWindows license
11 /////////////////////////////////////////////////////////////////////////////
12
13
14 %module windows
15
16 %{
17 #include "helpers.h"
18 #include <wx/menuitem.h>
19 #include <wx/tooltip.h>
20 %}
21
22 //----------------------------------------------------------------------
23
24 %include typemaps.i
25 %include my_typemaps.i
26
27 // Import some definitions of other classes, etc.
28 %import _defs.i
29 %import misc.i
30 %import gdi.i
31 %import clip_dnd.i
32
33 %pragma(python) code = "import wx"
34
35
36 %{
37 static wxString wxPyEmptyStr("");
38 %}
39
40 //---------------------------------------------------------------------------
41
42 class wxEvtHandler : public wxObject {
43 public:
44 wxEvtHandler();
45
46 bool ProcessEvent(wxEvent& event);
47 void AddPendingEvent(wxEvent& event);
48 //bool SearchEventTable(wxEventTable& table, wxEvent& event);
49
50 bool GetEvtHandlerEnabled();
51 void SetEvtHandlerEnabled(bool enabled);
52
53 wxEvtHandler* GetNextHandler();
54 wxEvtHandler* GetPreviousHandler();
55 void SetNextHandler(wxEvtHandler* handler);
56 void SetPreviousHandler(wxEvtHandler* handler);
57
58
59 %addmethods {
60 void Connect( int id, int lastId, int eventType, PyObject* func) {
61 if (PyCallable_Check(func)) {
62 self->Connect(id, lastId, eventType,
63 (wxObjectEventFunction) &wxPyCallback::EventThunker,
64 new wxPyCallback(func));
65 }
66 }
67
68 bool Disconnect(int id, int lastId = -1,
69 wxEventType eventType = wxEVT_NULL) {
70 return self->Disconnect(id, lastId, eventType,
71 (wxObjectEventFunction)
72 &wxPyCallback::EventThunker);
73 }
74 }
75
76 %addmethods {
77 void _setOORInfo(PyObject* _self) {
78 self->SetClientObject(new wxPyClientData(_self));
79 }
80 }
81 };
82
83
84 //----------------------------------------------------------------------
85
86 class wxValidator : public wxEvtHandler {
87 public:
88 wxValidator();
89 //~wxValidator();
90
91 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
92
93 wxValidator* Clone();
94 wxWindow* GetWindow();
95 void SetWindow(wxWindow* window);
96
97 static bool IsSilent();
98 static void SetBellOnError(int doIt = TRUE);
99
100 };
101
102
103 //----------------------------------------------------------------------
104 %{
105 class wxPyValidator : public wxValidator {
106 DECLARE_DYNAMIC_CLASS(wxPyValidator);
107 public:
108 wxPyValidator() {
109 }
110
111 ~wxPyValidator() {
112 }
113
114 wxObject* Clone() const {
115 wxPyValidator* ptr = NULL;
116 wxPyValidator* self = (wxPyValidator*)this;
117
118 wxPyTState* state = wxPyBeginBlockThreads();
119 if (self->m_myInst.findCallback("Clone")) {
120 PyObject* ro;
121 ro = self->m_myInst.callCallbackObj(Py_BuildValue("()"));
122 if (ro) {
123 SWIG_GetPtrObj(ro, (void **)&ptr, "_wxPyValidator_p");
124 Py_DECREF(ro);
125 }
126 }
127 wxPyEndBlockThreads(state);
128
129 // This is very dangerous!!! But is the only way I could find
130 // to squash a memory leak. Currently it is okay, but if the
131 // validator architecture in wxWindows ever changes, problems
132 // could arise.
133 delete self;
134 return ptr;
135 }
136
137
138 DEC_PYCALLBACK_BOOL_WXWIN(Validate);
139 DEC_PYCALLBACK_BOOL_(TransferToWindow);
140 DEC_PYCALLBACK_BOOL_(TransferFromWindow);
141
142 PYPRIVATE;
143 };
144
145 IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
146 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
147 IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
148
149 IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
150
151 %}
152
153 class wxPyValidator : public wxValidator {
154 public:
155 wxPyValidator();
156
157 void _setCallbackInfo(PyObject* self, PyObject* _class, int incref=TRUE);
158 %pragma(python) addtomethod = "__init__:self._setCallbackInfo(self, wxPyValidator, 1)"
159
160 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
161 };
162
163 //----------------------------------------------------------------------
164
165 %apply int * INOUT { int* x, int* y };
166
167 class wxWindow : public wxEvtHandler {
168 public:
169 wxWindow(wxWindow* parent, const wxWindowID id,
170 const wxPoint& pos = wxDefaultPosition,
171 const wxSize& size = wxDefaultSize,
172 long style = 0,
173 char* name = "panel");
174 %name(wxPreWindow)wxWindow();
175
176 bool Create(wxWindow* parent, const wxWindowID id,
177 const wxPoint& pos = wxDefaultPosition,
178 const wxSize& size = wxDefaultSize,
179 long style = 0,
180 char* name = "panel");
181
182 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
183 %pragma(python) addtomethod = "wxPreWindow:val._setOORInfo(val)"
184
185
186 void CaptureMouse();
187 void Center(int direction = wxBOTH);
188 void Centre(int direction = wxBOTH);
189 void CentreOnParent(int direction = wxBOTH );
190 void CenterOnParent(int direction = wxBOTH );
191 void CentreOnScreen(int direction = wxBOTH );
192 void CenterOnScreen(int direction = wxBOTH );
193
194 void Clear();
195
196 // (uses apply'ed INOUT typemap, see above)
197 %name(ClientToScreenXY)void ClientToScreen(int* x, int* y);
198 wxPoint ClientToScreen(const wxPoint& pt);
199
200 bool Close(int force = FALSE);
201 bool Destroy();
202 void DestroyChildren();
203 bool IsBeingDeleted();
204 #ifdef __WXMSW__
205 void DragAcceptFiles(bool accept);
206 #endif
207 void Enable(bool enable);
208 //bool FakePopupMenu(wxMenu* menu, int x, int y);
209 %name(FindWindowById) wxWindow* FindWindow(long id);
210 %name(FindWindowByName) wxWindow* FindWindow(const wxString& name);
211 void Fit();
212 wxColour GetBackgroundColour();
213
214 //wxList& GetChildren();
215 %addmethods {
216 PyObject* GetChildren() {
217 wxWindowList& list = self->GetChildren();
218 return wxPy_ConvertList(&list, "wxWindow");
219 }
220 }
221
222 int GetCharHeight();
223 int GetCharWidth();
224 %name(GetClientSizeTuple) void GetClientSize(int *OUTPUT, int *OUTPUT);
225 wxSize GetClientSize();
226 wxLayoutConstraints * GetConstraints();
227 wxEvtHandler* GetEventHandler();
228
229 wxFont& GetFont();
230 wxColour GetForegroundColour();
231 wxWindow * GetGrandParent();
232 %addmethods {
233 long GetHandle() {
234 return wxPyGetWinHandle(self); //(long)self->GetHandle();
235 }
236 }
237 int GetId();
238 wxString GetLabel();
239 void SetLabel(const wxString& label);
240 wxString GetName();
241 wxWindow * GetParent();
242 %name(GetPositionTuple) void GetPosition(int *OUTPUT, int *OUTPUT);
243 wxPoint GetPosition();
244 wxRect GetRect();
245 int GetScrollThumb(int orientation);
246 int GetScrollPos(int orientation);
247 int GetScrollRange(int orientation);
248 %name(GetSizeTuple) void GetSize(int *OUTPUT, int *OUTPUT);
249 wxSize GetSize();
250 void GetTextExtent(const wxString& string, int *OUTPUT, int *OUTPUT);
251 %name(GetFullTextExtent)void GetTextExtent(const wxString& string,
252 int *OUTPUT, int *OUTPUT, int *OUTPUT, int* OUTPUT,
253 const wxFont* font = NULL); //, bool use16 = FALSE)
254 wxString GetTitle();
255 wxRegion GetUpdateRegion();
256 long GetWindowStyleFlag();
257 void SetWindowStyleFlag(long style);
258 void SetWindowStyle(long style);
259 bool Hide();
260 void InitDialog();
261 bool IsEnabled();
262 bool IsExposed( int x, int y, int w=0, int h=0 );
263 %name(IsExposedPoint) bool IsExposed( const wxPoint& pt );
264 %name(IsExposedRect) bool IsExposed( const wxRect& rect );
265 bool IsRetained();
266 bool IsShown();
267 bool IsTopLevel();
268 void Layout();
269 bool LoadFromResource(wxWindow* parent, const wxString& resourceName, const wxResourceTable* resourceTable = NULL);
270 void Lower();
271 void MakeModal(bool flag=TRUE);
272 %name(MoveXY)void Move(int x, int y);
273 void Move(const wxPoint& point);
274
275 wxEvtHandler* PopEventHandler(bool deleteHandler = FALSE);
276 void PushEventHandler(wxEvtHandler* handler);
277
278 %name(PopupMenuXY)bool PopupMenu(wxMenu *menu, int x, int y);
279 bool PopupMenu(wxMenu *menu, const wxPoint& pos);
280
281 void Raise();
282 void Refresh(bool eraseBackground = TRUE, const wxRect* rect = NULL);
283 void RefreshRect(const wxRect& rect);
284
285 void ReleaseMouse();
286 void RemoveChild(wxWindow* child);
287 bool Reparent( wxWindow* newParent );
288
289 // (uses apply'ed INOUT typemap, see above)
290 %name(ScreenToClientXY)void ScreenToClient(int *x, int *y);
291 wxPoint ScreenToClient(const wxPoint& pt);
292
293 void ScrollWindow(int dx, int dy, const wxRect* rect = NULL);
294 void SetAutoLayout(bool autoLayout);
295 bool GetAutoLayout();
296 void SetBackgroundColour(const wxColour& colour);
297 void SetConstraints(wxLayoutConstraints *constraints);
298 void UnsetConstraints(wxLayoutConstraints *constraints);
299 void SetFocus();
300 bool AcceptsFocus();
301 void SetFont(const wxFont& font);
302 void SetForegroundColour(const wxColour& colour);
303 void SetId(int id);
304 void SetName(const wxString& name);
305 void SetScrollbar(int orientation, int position, int thumbSize, int range, int refresh = TRUE);
306 void SetScrollPos(int orientation, int pos, bool refresh = TRUE);
307
308 %name(SetDimensions) void SetSize(int x, int y, int width, int height, int sizeFlags=wxSIZE_AUTO);
309 %addmethods {
310 void SetSize(const wxSize& size) {
311 self->SetSize(size);
312 }
313
314 void SetPosition(const wxPoint& pos) {
315 self->Move(pos);
316 }
317
318 void SetRect(const wxRect& rect, int sizeFlags=wxSIZE_AUTO) {
319 self->SetSize(rect, sizeFlags);
320 }
321 }
322
323 void SetSizeHints(int minW=-1, int minH=-1, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1);
324 %name(SetClientSizeWH)void SetClientSize(int width, int height);
325 void SetClientSize(const wxSize& size);
326 //void SetPalette(wxPalette* palette);
327 void SetCursor(const wxCursor&cursor);
328 void SetEventHandler(wxEvtHandler* handler);
329 void SetExtraStyle(long exStyle);
330 void SetTitle(const wxString& title);
331 bool Show(bool show);
332 bool TransferDataFromWindow();
333 bool TransferDataToWindow();
334 bool Validate();
335 void WarpPointer(int x, int y);
336
337 %name(ConvertDialogPointToPixels) wxPoint ConvertDialogToPixels(const wxPoint& pt);
338 %name(ConvertDialogSizeToPixels) wxSize ConvertDialogToPixels(const wxSize& sz);
339
340 %name(DLG_PNT) wxPoint ConvertDialogToPixels(const wxPoint& pt);
341 %name(DLG_SZE) wxSize ConvertDialogToPixels(const wxSize& sz);
342
343 %name(ConvertPixelPointToDialog) wxPoint ConvertPixelsToDialog(const wxPoint& pt);
344 %name(ConvertPixelSizeToDialog) wxSize ConvertPixelsToDialog(const wxSize& sz);
345
346 %name(SetToolTipString)void SetToolTip(const wxString &tip);
347 void SetToolTip(wxToolTip *tooltip);
348 wxToolTip* GetToolTip();
349
350 void SetSizer(wxSizer* sizer);
351 wxSizer* GetSizer();
352
353 wxValidator* GetValidator();
354 void SetValidator(const wxValidator& validator);
355
356 #ifndef __WXMAC__
357 void SetDropTarget(wxDropTarget* target);
358 wxDropTarget* GetDropTarget();
359 %pragma(python) addtomethod = "SetDropTarget:_args[0].thisown = 0"
360 #endif
361
362 wxSize GetBestSize();
363
364 void SetCaret(wxCaret *caret);
365 wxCaret *GetCaret();
366 %pragma(python) addtoclass = "# replaces broken shadow method
367 def GetCaret(self, *_args, **_kwargs):
368 from misc2 import wxCaretPtr
369 val = apply(windowsc.wxWindow_GetCaret,(self,) + _args, _kwargs)
370 if val: val = wxCaretPtr(val)
371 return val
372 "
373
374 void Freeze();
375 void Thaw();
376 void Update();
377
378 wxString GetHelpText();
379 void SetHelpText(const wxString& helpText);
380
381 bool ScrollLines(int lines);
382 bool ScrollPages(int pages);
383 bool LineUp();
384 bool LineDown();
385 bool PageUp();
386 bool PageDown();
387
388 static wxWindow* FindFocus();
389 static int NewControlId();
390 static int NextControlId(int id);
391 static int PrevControlId(int id);
392
393 void SetAcceleratorTable(const wxAcceleratorTable& accel);
394 wxAcceleratorTable *GetAcceleratorTable();
395 };
396
397
398
399
400 %pragma(python) code = "
401 def wxDLG_PNT(win, point_or_x, y=None):
402 if y is None:
403 return win.ConvertDialogPointToPixels(point_or_x)
404 else:
405 return win.ConvertDialogPointToPixels(wxPoint(point_or_x, y))
406
407 def wxDLG_SZE(win, size_width, height=None):
408 if height is None:
409 return win.ConvertDialogSizeToPixels(size_width)
410 else:
411 return win.ConvertDialogSizeToPixels(wxSize(size_width, height))
412 "
413
414
415 #ifdef __WXMSW__
416 %inline %{
417 wxWindow* wxWindow_FromHWND(unsigned long hWnd) {
418 wxWindow* win = new wxWindow;
419 win->SetHWND(hWnd);
420 win->SubclassWin(hWnd);
421 return win;
422 }
423 %}
424 #endif
425
426
427 //---------------------------------------------------------------------------
428
429 class wxPanel : public wxWindow {
430 public:
431 wxPanel(wxWindow* parent,
432 const wxWindowID id,
433 const wxPoint& pos = wxDefaultPosition,
434 const wxSize& size = wxDefaultSize,
435 long style = wxTAB_TRAVERSAL,
436 const char* name = "panel");
437 %name(wxPrePanel)wxPanel();
438
439 bool Create(wxWindow* parent,
440 const wxWindowID id,
441 const wxPoint& pos = wxDefaultPosition,
442 const wxSize& size = wxDefaultSize,
443 long style = wxTAB_TRAVERSAL,
444 const char* name = "panel");
445
446 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
447 %pragma(python) addtomethod = "XXX:val._setOORInfo(self)"
448
449 void InitDialog();
450 wxButton* GetDefaultItem();
451 void SetDefaultItem(wxButton *btn);
452
453 };
454
455 //---------------------------------------------------------------------------
456
457
458 // TODO: Add wrappers for the wxScrollHelper class, make wxScrolledWindow
459 // derive from it and wxPanel.
460
461
462 class wxScrolledWindow : public wxPanel {
463 public:
464 wxScrolledWindow(wxWindow* parent,
465 const wxWindowID id = -1,
466 const wxPoint& pos = wxDefaultPosition,
467 const wxSize& size = wxDefaultSize,
468 long style = wxHSCROLL | wxVSCROLL,
469 char* name = "scrolledWindow");
470 %name(wxPreScrolledWindow)wxScrolledWindow();
471
472 bool Create(wxWindow* parent,
473 const wxWindowID id = -1,
474 const wxPoint& pos = wxDefaultPosition,
475 const wxSize& size = wxDefaultSize,
476 long style = wxHSCROLL | wxVSCROLL,
477 char* name = "scrolledWindow");
478
479 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
480 %pragma(python) addtomethod = "wxPreScrolledWindow:val._setOORInfo(val)"
481
482 void EnableScrolling(bool xScrolling, bool yScrolling);
483 int GetScrollPageSize(int orient);
484 void GetScrollPixelsPerUnit(int* OUTPUT, int* OUTPUT);
485 wxWindow* GetTargetWindow();
486 void GetVirtualSize(int* OUTPUT, int* OUTPUT);
487 bool IsRetained();
488 void PrepareDC(wxDC& dc);
489 void Scroll(int x, int y);
490 void SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY,
491 int noUnitsX, int noUnitsY,
492 int xPos = 0, int yPos = 0, int noRefresh=FALSE);
493 void SetScrollPageSize(int orient, int pageSize);
494 void SetTargetWindow(wxWindow* window);
495 void GetViewStart(int* OUTPUT, int* OUTPUT);
496 %pragma(python) addtoclass = "ViewStart = GetViewStart"
497
498 void CalcScrolledPosition( int x, int y, int *OUTPUT, int *OUTPUT);
499 void CalcUnscrolledPosition( int x, int y, int *OUTPUT, int *OUTPUT);
500
501 void SetScale(double xs, double ys);
502 double GetScaleX();
503 double GetScaleY();
504
505 void AdjustScrollbars();
506 };
507
508 //----------------------------------------------------------------------
509
510
511 class wxMenu : public wxEvtHandler {
512 public:
513 wxMenu(const wxString& title = wxPyEmptyStr, long style = 0);
514
515 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
516
517 void Append(int id, const wxString& item,
518 const wxString& helpString = wxPyEmptyStr,
519 int checkable = FALSE);
520 %name(AppendMenu)void Append(int id, const wxString& item, wxMenu *subMenu,
521 const wxString& helpString = wxPyEmptyStr);
522 %name(AppendItem)void Append(const wxMenuItem* item);
523
524 void AppendSeparator();
525 void Break();
526 void Check(int id, bool flag);
527 bool IsChecked(int id);
528 void Enable(int id, bool enable);
529 bool IsEnabled(int id);
530
531 int FindItem(const wxString& itemString);
532 %name(FindItemById)wxMenuItem* FindItem(int id/*, wxMenu **menu = NULL*/);
533
534 wxString GetTitle();
535 void SetTitle(const wxString& title);
536
537 wxString GetLabel(int id);
538 void SetLabel(int id, const wxString& label);
539
540 wxString GetHelpString(int id);
541 void SetHelpString(int id, const wxString& helpString);
542 void UpdateUI(wxEvtHandler* source = NULL);
543
544 bool Delete(int id);
545 %name(DeleteItem)bool Delete(wxMenuItem *item);
546 bool Insert(size_t pos, wxMenuItem *item);
547 wxMenuItem *Remove(int id);
548 %name(RemoveItem) wxMenuItem *Remove(wxMenuItem *item);
549
550 %addmethods {
551 void Destroy() { delete self; }
552 }
553 %name(DestroyId)bool Destroy(int id);
554 %name(DestroyItem)bool Destroy(wxMenuItem *item);
555
556 size_t GetMenuItemCount();
557 //wxMenuItemList& GetMenuItems();
558 %addmethods {
559 PyObject* GetMenuItems() {
560 wxMenuItemList& list = self->GetMenuItems();
561 return wxPy_ConvertList(&list, "wxMenuItem");
562 }
563 }
564
565 void SetEventHandler(wxEvtHandler *handler);
566 wxEvtHandler *GetEventHandler();
567
568 void SetInvokingWindow(wxWindow *win);
569 wxWindow *GetInvokingWindow();
570
571 long GetStyle();
572
573 bool IsAttached();
574
575 void SetParent(wxMenu *parent);
576 wxMenu *GetParent();
577 };
578
579
580 //----------------------------------------------------------------------
581
582 class wxMenuBar : public wxWindow {
583 public:
584 wxMenuBar(long style = 0);
585
586 %pragma(python) addtomethod = "__init__:self._setOORInfo(self)"
587
588 bool Append(wxMenu *menu, const wxString& title);
589 bool Insert(size_t pos, wxMenu *menu, const wxString& title);
590 size_t GetMenuCount();
591 wxMenu *GetMenu(size_t pos);
592 wxMenu *Replace(size_t pos, wxMenu *menu, const wxString& title);
593 wxMenu *Remove(size_t pos);
594 void EnableTop(size_t pos, bool enable);
595 void SetLabelTop(size_t pos, const wxString& label);
596 wxString GetLabelTop(size_t pos);
597 int FindMenu(const wxString& title);
598 int FindMenuItem(const wxString& menuString, const wxString& itemString);
599 %name(FindItemById)wxMenuItem* FindItem(int id/*, wxMenu **menu = NULL*/);
600 void Enable(int id, bool enable);
601 void Check(int id, bool check);
602 bool IsChecked(int id);
603 bool IsEnabled(int id);
604
605 void SetLabel(int id, const wxString &label);
606 wxString GetLabel(int id);
607
608 void SetHelpString(int id, const wxString& helpString);
609 wxString GetHelpString(int id);
610
611 };
612
613
614 //----------------------------------------------------------------------
615
616 class wxMenuItem : public wxObject {
617 public:
618 wxMenuItem(wxMenu* parentMenu=NULL, int id=wxID_SEPARATOR,
619 const wxString& text = wxPyEmptyStr,
620 const wxString& help = wxPyEmptyStr,
621 bool isCheckable = FALSE, wxMenu* subMenu = NULL);
622
623
624 wxMenu *GetMenu();
625 void SetId(int id);
626 int GetId();
627 bool IsSeparator();
628 void SetText(const wxString& str);
629 wxString GetLabel();
630 const wxString& GetText();
631 void SetCheckable(bool checkable);
632 bool IsCheckable();
633 bool IsSubMenu();
634 void SetSubMenu(wxMenu *menu);
635 wxMenu *GetSubMenu();
636 void Enable(bool enable = TRUE);
637 bool IsEnabled();
638 void Check(bool check = TRUE);
639 bool IsChecked();
640 void Toggle();
641 void SetHelp(const wxString& str);
642 const wxString& GetHelp();
643 wxAcceleratorEntry *GetAccel();
644 void SetAccel(wxAcceleratorEntry *accel);
645
646 static wxString GetLabelFromText(const wxString& text);
647
648 // wxOwnerDrawn methods
649 #ifdef __WXMSW__
650 void SetFont(const wxFont& font);
651 wxFont& GetFont();
652 void SetTextColour(const wxColour& colText);
653 wxColour GetTextColour();
654 void SetBackgroundColour(const wxColour& colBack);
655 wxColour GetBackgroundColour();
656 void SetBitmaps(const wxBitmap& bmpChecked,
657 const wxBitmap& bmpUnchecked = wxNullBitmap);
658 void SetBitmap(const wxBitmap& bmpChecked);
659 const wxBitmap& GetBitmap(bool bChecked = TRUE);
660 void SetMarginWidth(int nWidth);
661 int GetMarginWidth();
662 static int GetDefaultMarginWidth();
663 //void SetName(const wxString& strName);
664 //const wxString& GetName();
665 //void SetCheckable(bool checkable);
666 //bool IsCheckable();
667 bool IsOwnerDrawn();
668 void ResetOwnerDrawn();
669 #endif
670 };
671
672 //---------------------------------------------------------------------------
673
674
675