wxPopupTransientWindow(3)

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

DESCRIPTION

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

See: wxPopupWindow

This class is derived, and can use functions, from:

    • wxPopupWindow

    • wxWindow

    • wxEvtHandler

wxWidgets docs: wxPopupTransientWindow

DATA TYPES

wxPopupTransientWindow() :: wx:wx_object().

FUNCTIONS

destroy(This :: wxPopupTransientWindow()) -> ok.

    Destroys the object
dismiss(This) -> ok when This :: wxPopupTransientWindow().

    Hide the window.
new() -> wxPopupTransientWindow().

    Default constructor.
new(Parent, [Option]) -> wxPopupTransientWindow() when Parent :: wxWindow:wxWindow(), Option :: {style, integer()}.

    Constructor.
popup(This, [Option]) -> ok when This :: wxPopupTransientWindow(), Option :: {focus, wxWindow:wxWindow()}.

    Popup the window (this will show it too).

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

    See: dismiss/1