wxShowEvent(3)
π wxShowEvent π
okay bestie, so this is the Erlang module definition for wxShowEvent, and it's literally the event that gets sent when a window is shown or hidden. no cap. π¦
β¨ NAME β¨
wxShowEvent β the event that gets sent when a window is shown or hidden. that's it, that's the whole vibe. π
πΈ DESCRIPTION πΈ
so here's the tea: this event fires when you call wxWindow:show/2, and also when a user does something that shows a previously hidden window (or hides one that was showing). but β and this is the important part β that only works if the current platform and/or window manager allows it. so like, check your platform, bestie. π
π¨ IMPORTANT: this event is NOT triggered when the application is iconized (minimized) or restored under wxMSW. not me finding this out the hard way. π
See also, because we love receipts:
- Overview events
wxWindow:show/2wxWindow:isShown/1
This class is derived, and can use functions, from:
wxEvent
wxWidgets docs: wxShowEvent
π Events π
use wxEvtHandler:connect/3 with wxShowEventType to subscribe to events of this type. simple as that. periodt. β¨
π§ DATA TYPES π§
wxShow() :: #wxShow{}.
wxShowEvent() :: wx:wx_object().
wxShowEventType() :: show.
π₯ FUNCTIONS π₯
β isShown(This) -> boolean() when This :: wxShowEvent().
returns true if the window has been shown, and false if it has been hidden. that's the whole function. icon behavior. π
β setShow(This, Show) -> ok when This :: wxShowEvent(), Show :: boolean().
sets whether the window was shown or hidden. you gotta pass This (your wxShowEvent()) and Show (a boolean()), and you get ok back. gorgeous. π
and that's the whole page, bestie!! go forth and show/hide windows responsibly π«Ά
written up by Ericsson AB for wx 2.6 β catch you in the next manpage, 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