]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/popupwin.cpp
fe1d27c1ed175719281d77f5991f1b8d2386e734
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma implementation "popupwin.h"
18 #include "wx/popupwin.h"
21 #include "wx/cursor.h"
23 #include "wx/x11/private.h"
25 //-----------------------------------------------------------------------------
27 //-----------------------------------------------------------------------------
29 BEGIN_EVENT_TABLE(wxPopupWindow
,wxPopupWindowBase
)
32 IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow
, wxWindow
)
34 bool wxPopupWindow::Create( wxWindow
*parent
, int style
)
36 if (!CreateBase( parent
, -1, wxDefaultPosition
, wxDefaultSize
, style
, wxDefaultValidator
, "popup" ))
38 wxFAIL_MSG( wxT("wxPopupWindow creation failed") );
42 // All dialogs should really have this style
43 m_windowStyle
|= wxTAB_TRAVERSAL
;
45 if (m_parent
) m_parent
->AddChild( this );
47 // TODO: implementation
52 void wxPopupWindow::DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
), int WXUNUSED(width
), int WXUNUSED(height
) )
54 wxFAIL_MSG( wxT("DoMoveWindow called for wxPopupWindow") );
57 void wxPopupWindow::DoSetSize( int x
, int y
, int width
, int height
, int sizeFlags
)
61 bool wxPopupWindow::Show( bool show
)
64 bool ret
= wxWindow::Show( show
);
69 #endif // wxUSE_POPUPWIN