]> git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/popupwin.cpp
should have been part of r74664: Avoid calling gtk_window_get_position() from "config...
[wxWidgets.git] / src / osx / carbon / popupwin.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/popupwin.cpp
3 // Purpose: implements wxPopupWindow for wxMac
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created:
7 // Copyright: (c) 2006 Stefan Csomor
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // CAUTION : This is only experimental stuff right now
16
17 // ----------------------------------------------------------------------------
18 // headers
19 // ----------------------------------------------------------------------------
20
21 // For compilers that support precompilation, includes "wx.h".
22 #include "wx/wxprec.h"
23
24 #ifdef __BORLANDC__
25 #pragma hdrstop
26 #endif
27
28 #if wxUSE_POPUPWIN
29
30 #ifndef WX_PRECOMP
31 #endif //WX_PRECOMP
32
33 #include "wx/popupwin.h"
34 #include "wx/tooltip.h"
35
36 #include "wx/osx/private.h"
37
38 // ============================================================================
39 // implementation
40 // ============================================================================
41
42 wxPopupWindow::~wxPopupWindow()
43 {
44 }
45
46 bool wxPopupWindow::Create(wxWindow *parent, int flags)
47 {
48 // popup windows are created hidden by default
49 Hide();
50
51 return wxPopupWindowBase::Create(parent) &&
52 wxNonOwnedWindow::Create(parent, wxID_ANY,
53 wxDefaultPosition, wxDefaultSize,
54 flags | wxPOPUP_WINDOW);
55
56 }
57
58 #endif // #if wxUSE_POPUPWIN