wxInitDialogEvent(3erl)

πŸ’… wxInitDialogEvent πŸ’…

okay bestie, we're in the Erlang Module Definition manual and this page is all about wxInitDialogEvent β€” yes, the event class, and it's very much giving "dialog is waking up" energy. ✨


🌸 NAME 🌸

wxInitDialogEvent β€” Functions for wxInitDialogEvent class. That's the whole name, no cap. πŸ’–


✨ DESCRIPTION ✨

A wxInitDialogEvent is sent as a dialog or panel is being initialised. Like, the window is getting its life together, and this event shows up. 🫢

Handlers for this event can transfer data to the window. So yeah, this is your moment to move data in and make it make sense.

The default handler calls wxWindow:transferDataToWindow/1. Iconic behavior, honestly.

  • See: Overview events
  • This class is derived (and can use functions) from: wxEvent
  • wxWidgets docs: wxInitDialogEvent

πŸŽ€ EVENTS πŸŽ€

Use wxEvtHandler:connect/3 with wxInitDialogEventType to subscribe to events of this type. That's the whole vibe check for subscribing, bestie. πŸ”₯


πŸ¦‹ DATA TYPES πŸ¦‹

Here are the data types, preserved exactly because we do not play with code around here πŸ’…:

wxInitDialogEvent() = wx:wx_object()

wxInitDialog() =
    #wxInitDialog{type =
                      wxInitDialogEvent:wxInitDialogEventType()}

wxInitDialogEventType() = init_dialog

sign-off from the footer, fr fr: shoutout to the wxWidgets team 🫢, version wx 2.2.2.1, and this page is wxInitDialogEvent(3erl). periodt. πŸ’–

πŸ“¦ where this page comes from