wxSysColourChangedEvent(3)

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

πŸ’– wxSysColourChangedEvent(3) πŸ’–

okay so bestie, we're in section 3 of the manual and this is an Erlang module definition page for wxSysColourChangedEvent πŸŽ€ pull up a chair, this one's short and sweet.


✨ NAME ✨

wxSysColourChangedEvent β€” the class that handles system colour change events πŸ’… which get generated whenever the user goes into the control panel and messes with the colour settings. that's it, that's the whole vibe.


🌸 DESCRIPTION 🌸

okay so first things first, this is only appropriate under Windows. like, that's literally it. Windows-only energy. πŸͺŸ

Remark: the default event handler for this event propagates the event to child windows, because Windows only sends these events to top-level windows. so if you're intercepting this event for a top-level window, remember to call the base class handler, or pass the event on to the window's children explicitly. don't be that person who swallows the event and then wonders why the kids are starving 😭

See: Overview events πŸ‘€

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

  • wxEvent 🧬

wxWidgets docs: wxSysColourChangedEvent πŸ“š

πŸ¦‹ Events πŸ¦‹

use wxEvtHandler:connect/3 with wxSysColourChangedEventType to subscribe to events of this type. that's the whole handshake, no cap 🀝


πŸ’œ DATA TYPES πŸ’œ

wxSysColourChanged() :: #wxSysColourChanged{}.
wxSysColourChangedEvent() :: wx:wx_object().
wxSysColourChangedEventType() :: sys_colour_changed.

three types, all iconic, all doing exactly what they say on the tin ✨


πŸ”₯ FUNCTIONS πŸ”₯

ngl bestie, this page lists no functions here. zero. the section exists, it's just empty. not me hyping you up for a function list that never shows up πŸ’€


tl;dr β€” Windows-only event class, fires when the user changes system colours via the control panel, and the default handler passes it down to child windows because Windows only tells the top-level windows about it. intercept it and you must call the base handler or forward it yourself. periodt. πŸ’…

Ericsson AB 🫢 wx 2.6 πŸŽ€ that's the source, the version, and the whole page name right there in the footer β€” mwah, go slay your colour events bestie πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from