2008-04-12 11:37:09 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: popupwind.h
|
|
|
|
// Purpose: interface of wxPoppWindow
|
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id:$
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
@class wxPopupWindow
|
|
|
|
|
|
|
|
A special kind of top level window used for popup menus,
|
|
|
|
combobox popups and such.
|
|
|
|
|
|
|
|
@library{wxcore}
|
|
|
|
@category{managedwnd}
|
|
|
|
|
|
|
|
@see wxDialog, wxFrame
|
|
|
|
*/
|
|
|
|
|
|
|
|
class wxPopupWindow: public wxNonOwnedWindow
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
/**
|
|
|
|
Constructor
|
|
|
|
*/
|
|
|
|
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE);
|
2008-10-10 15:14:22 -04:00
|
|
|
|
2008-04-12 11:37:09 -04:00
|
|
|
/**
|
|
|
|
Create method for two-step creation
|
|
|
|
*/
|
|
|
|
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
|
2008-10-10 15:14:22 -04:00
|
|
|
|
2008-04-12 11:37:09 -04:00
|
|
|
/**
|
|
|
|
Move the popup window to the right position, i.e. such that it is
|
|
|
|
entirely visible.
|
2008-10-10 15:14:22 -04:00
|
|
|
|
2008-04-12 11:37:09 -04:00
|
|
|
The popup is positioned at ptOrigin + size if it opens below and to the
|
|
|
|
right (default), at ptOrigin - sizePopup if it opens above and to the
|
|
|
|
left etc.
|
2008-10-10 15:14:22 -04:00
|
|
|
|
2008-04-12 11:37:09 -04:00
|
|
|
@param ptOrigin
|
|
|
|
Must be given in screen coordinates!
|
2008-10-10 15:14:22 -04:00
|
|
|
@param sizePopup
|
|
|
|
The size of the popup window
|
2008-04-12 11:37:09 -04:00
|
|
|
*/
|
|
|
|
virtual void Position(const wxPoint& ptOrigin,
|
2008-10-10 15:14:22 -04:00
|
|
|
const wxSize& sizePopup);
|
2008-04-12 11:37:09 -04:00
|
|
|
};
|
|
|
|
|