]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/popupwin.cpp
a030e98cc6e9d396bb3581e3bf3c31ba2c416b0d
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
)
38 if (!CreateBase( parent
, -1, wxDefaultPosition
, wxDefaultSize
, style
, wxDefaultValidator
, "popup" ))
40 wxFAIL_MSG( wxT("wxPopupWindow creation failed") );
44 // All dialogs should really have this style
45 m_windowStyle
|= wxTAB_TRAVERSAL
;
47 if (m_parent
) m_parent
->AddChild( this );
49 // TODO: implementation
54 void wxPopupWindow::DoMoveWindow(int WXUNUSED(x
), int WXUNUSED(y
), int WXUNUSED(width
), int WXUNUSED(height
) )
56 wxFAIL_MSG( wxT("DoMoveWindow called for wxPopupWindow") );
59 void wxPopupWindow::DoSetSize( int x
, int y
, int width
, int height
, int sizeFlags
)
63 bool wxPopupWindow::Show( bool show
)
66 bool ret
= wxWindow::Show( show
);
71 #endif // wxUSE_POPUPWIN