wxPopupTransientWindow(3)
π wxPopupTransientWindow π
okay bestie, welcome to the wxPopupTransientWindow page, straight out of the Erlang Module Definition section of the wx docs. it's giving popup-that-ghosts-you, and honestly? iconic.
β¨ NAME β¨
wxPopupTransientWindow β a wxPopupWindow that dips out automatically the second the user clicks their mouse anywhere outside it, or whenever it loses focus some other way. lowkey the most emotionally unavailable window class in the whole toolkit. π
πΈ DESCRIPTION πΈ
so like, this window is genuinely useful for building custom combobox-style controls, for example. it pops up, it does its lil thing, and then it peaces out the moment it stops being the main character. no cap.
See: wxPopupWindow
π¦ inheritance energy (derived class tea) π¦
this class is derived from β and can absolutely use functions from β the following:
wxPopupWindowwxWindowwxEvtHandler
it's giving family tree. it got the whole bloodline. π
just so you know: wxWidgets docs: wxPopupTransientWindow
π DATA TYPES π
wxPopupTransientWindow() :: wx:wx_object().
that's it, that's the type. short, sweet, slaying.
π FUNCTIONS π
π destroy/1 π
destroy(This :: wxPopupTransientWindow()) -> ok.
destroys the object. bye bye, gone, no refunds, we love a clean exit. β¨
π dismiss/1 π
dismiss(This) -> ok when This :: wxPopupTransientWindow().
hides the window. it's not destroyed, it's just napping under the covers, iykyk. π
π new/0 π
new() -> wxPopupTransientWindow().
the default constructor. no arguments, no drama, just vibes. π«Ά
π new/2 π
new(Parent, [Option]) -> wxPopupTransientWindow()
when
Parent :: wxWindow:wxWindow(),
Option :: {style, integer()}.
the constructor. you bring a Parent (which is a wxWindow:wxWindow()) and you can sprinkle in an Option of {style, integer()}. very choose-your-own-adventure. π
π popup/2 π
popup(This, [Option]) -> ok
when
This :: wxPopupTransientWindow(),
Option :: {focus, wxWindow:wxWindow()}.
pops the window up β and yes, bestie, this will show it too. one call, two jobs, we stan efficiency. π
now for the focus situation, listen closely:
- if
focusis non-NULL, it will be kept focused while this window is shown β if the current platform supports that. platforms are gonna platform. π - otherwise, the popup itself will receive focus instead.
- either way, the popup will disappear automatically if it loses focus because of a user action. it's clingy like that. touch grass once and it's gone.
See: dismiss/1
π§ a lil sign-off, from me to you π§
this page came to you courtesy of Ericsson AB, sitting pretty at wx 2.6. no date on this one, so we keep it timeless, like a true icon. go forth and popup responsibly, bestie. mwah. πβ¨π
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms