]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/popupwin.h
wx(Choice/List/Note)book controls send CHANG(ED/ING) events in SetSelection.
[wxWidgets.git] / include / wx / gtk / popupwin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: popupwin.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Created:
6 // Id: $Id$
7 // Copyright: (c) 2001 Robert Roebling
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef __GTKPOPUPWINH__
12 #define __GTKPOPUPWINH__
13
14 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
15 #pragma interface "popupwin.h"
16 #endif
17
18 #include "wx/defs.h"
19 #include "wx/panel.h"
20 #include "wx/icon.h"
21
22 //-----------------------------------------------------------------------------
23 // wxPopUpWindow
24 //-----------------------------------------------------------------------------
25
26 class wxPopupWindow: public wxPopupWindowBase
27 {
28 public:
29 wxPopupWindow() { }
30 virtual ~wxPopupWindow();
31
32 wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
33 { (void)Create(parent, flags); }
34 bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
35
36 virtual bool Show( bool show = TRUE );
37
38 // implementation
39 // --------------
40
41 virtual void DoMoveWindow(int x, int y, int width, int height);
42
43 virtual void OnInternalIdle();
44
45
46 protected:
47 void GtkOnSize( int x, int y, int width, int height );
48
49 virtual void DoSetSize(int x, int y,
50 int width, int height,
51 int sizeFlags = wxSIZE_AUTO);
52
53 private:
54 DECLARE_EVENT_TABLE()
55 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
56 };
57
58 #endif // __GTKPOPUPWINDOWH__