]> git.saurik.com Git - wxWidgets.git/blame - src/osx/carbon/popupwin.cpp
avoid setting initial position if it was not specified, broken in r70734
[wxWidgets.git] / src / osx / carbon / popupwin.cpp
CommitLineData
489468fe 1///////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: src/osx/carbon/popupwin.cpp
489468fe
SC
3// Purpose: implements wxPopupWindow for wxMac
4// Author: Stefan Csomor
5// Modified by:
03647350 6// Created:
489468fe 7// Copyright: (c) 2006 Stefan Csomor
526954c5 8// Licence: wxWindows licence
489468fe
SC
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
03647350 36#include "wx/osx/private.h"
489468fe
SC
37
38// ============================================================================
39// implementation
40// ============================================================================
41
42wxPopupWindow::~wxPopupWindow()
43{
44}
45
46bool 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