wxPopupWindow Class Reference
[Managed Windows]

#include <wx/popupwin.h>

List of all members.


Detailed Description

A special kind of top level window used for popup menus, combobox popups and such.

Library:  wxCore

Category:  Managed Windows

See also:
wxDialog, wxFrame

Public Member Functions

 wxPopupWindow (wxWindow *parent, int flags=wxBORDER_NONE)
bool Create (wxWindow *parent, int flags=wxBORDER_NONE)
virtual void Position (const wxPoint &ptOrigin, const wxSize &size)

Constructor & Destructor Documentation

wxPopupWindow::wxPopupWindow ( wxWindow parent,
int  flags = wxBORDER_NONE 
)

Constructor


Member Function Documentation

bool wxPopupWindow::Create ( wxWindow parent,
int  flags = wxBORDER_NONE 
)

Create method for two-step creation

virtual void wxPopupWindow::Position ( const wxPoint ptOrigin,
const wxSize size 
) [virtual]

Move the popup window to the right position, i.e. such that it is entirely visible.

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.

Parameters:
ptOrigin Must be given in screen coordinates!



wxWidgets logo

[ top ]