wxShowEvent(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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/2
  • wxWindow: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