]>
git.saurik.com Git - wxWidgets.git/blob - src/osx/carbon/popupwin.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/osx/carbon/popupwin.cpp
3 // Purpose: implements wxPopupWindow for wxMac
4 // Author: Stefan Csomor
7 // Copyright: (c) 2006 Stefan Csomor
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // CAUTION : This is only experimental stuff right now
17 // ----------------------------------------------------------------------------
19 // ----------------------------------------------------------------------------
21 // For compilers that support precompilation, includes "wx.h".
22 #include "wx/wxprec.h"
33 #include "wx/popupwin.h"
34 #include "wx/tooltip.h"
36 #include "wx/osx/private.h"
38 // ============================================================================
40 // ============================================================================
42 wxPopupWindow::~wxPopupWindow()
46 bool wxPopupWindow::Create(wxWindow
*parent
, int flags
)
48 // popup windows are created hidden by default
51 return wxPopupWindowBase::Create(parent
) &&
52 wxNonOwnedWindow::Create(parent
, wxID_ANY
,
53 wxDefaultPosition
, wxDefaultSize
,
54 flags
| wxPOPUP_WINDOW
);
58 #endif // #if wxUSE_POPUPWIN