wxSysColourChangedEvent(3)
π 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
- 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