Version: 2.9.4
Public Member Functions | Protected Member Functions
wxPopupTransientWindow Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/popupwin.h>

Inheritance diagram for wxPopupTransientWindow:

Detailed Description

A wxPopupWindow which disappears automatically when the user clicks mouse outside it or if it loses focus in any other way.

This window can be useful for implementing custom combobox-like controls for example.

Library:  wxCore
Category:  Managed Windows
参照:
wxPopupWindow

Public Member Functions

 wxPopupTransientWindow ()
 Default constructor.
 wxPopupTransientWindow (wxWindow *parent, int flags=wxBORDER_NONE)
 Constructor.
virtual void Popup (wxWindow *focus=NULL)
 Popup the window (this will show it too).
virtual void Dismiss ()
 Hide the window.
virtual bool ProcessLeftDown (wxMouseEvent &event)
 Called when a mouse is pressed while the popup is shown.

Protected Member Functions

virtual void OnDismiss ()
 This is called when the popup is disappeared because of anything else but direct call to Dismiss().

List of all members.


Constructor & Destructor Documentation

wxPopupTransientWindow::wxPopupTransientWindow ( )

Default constructor.

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

Constructor.


Member Function Documentation

virtual void wxPopupTransientWindow::Dismiss ( ) [virtual]

Hide the window.

virtual void wxPopupTransientWindow::OnDismiss ( ) [protected, virtual]

This is called when the popup is disappeared because of anything else but direct call to Dismiss().

virtual void wxPopupTransientWindow::Popup ( wxWindow focus = NULL) [virtual]

Popup the window (this will show it too).

If winFocus is non-NULL, it will be kept focused while this window is shown, otherwise this window itself will receive focus. In any case, the popup will disappear automatically if it loses focus because of a user action.

参照:
Dismiss()
virtual bool wxPopupTransientWindow::ProcessLeftDown ( wxMouseEvent event) [virtual]

Called when a mouse is pressed while the popup is shown.

Return true from here to prevent its normal processing by the popup (which consists in dismissing it if the mouse is clicked outside it).

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines