2001-10-01 18:09:14 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/mgl/popupwin.h
|
|
|
|
// Purpose: wxPopupWindow class for wxMGL
|
|
|
|
// Author: Vadim Zeitlin
|
|
|
|
// Created: 06.01.01
|
|
|
|
// RCS-ID: $Id$
|
2002-02-14 15:30:34 -05:00
|
|
|
// Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com)
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2001-10-01 18:09:14 -04:00
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_POPUPWIN_H_
|
|
|
|
#define _WX_POPUPWIN_H_
|
|
|
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// wxPopupWindow
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
|
2001-10-01 18:09:14 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxPopupWindow() { }
|
|
|
|
|
2001-10-12 14:11:46 -04:00
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{ (void)Create(parent, flags); }
|
2001-10-01 18:09:14 -04:00
|
|
|
|
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE)
|
|
|
|
{
|
|
|
|
return wxPopupWindowBase::Create(parent) &&
|
|
|
|
wxWindow::Create(parent, -1,
|
|
|
|
wxDefaultPosition, wxDefaultSize,
|
2001-10-06 18:46:30 -04:00
|
|
|
(flags & wxBORDER_MASK) | wxPOPUP_WINDOW);
|
2001-10-01 18:09:14 -04:00
|
|
|
}
|
2002-01-08 18:25:23 -05:00
|
|
|
|
2009-08-21 06:41:26 -04:00
|
|
|
protected:
|
2002-01-08 18:25:23 -05:00
|
|
|
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
2001-10-01 18:09:14 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _WX_POPUPWIN_H_
|
|
|
|
|