wxMessageDialog(3erl)
π NAME π
okay bestie, welcome to wxMessageDialog(3erl) β the Erlang Module Definition for the wxMessageDialog class β¨. The name line is literally: wxMessageDialog - Functions for wxMessageDialog class.
πΈ DESCRIPTION πΈ
This class represents a dialog that shows a single or multi-line message, with a choice of OK, Yes, No and Cancel buttons. Thatβs the whole vibe: message goes in, buttons go on, bestie chooses. π
π¦ Styles π¦
This class supports the following styles: (and then the page just points you at the overview, so thatβs where the style lore lives β no extra style names are being invented here π«Ά)
- See:
Overview cmndlg - See:
wxRichMessageDialog (not implemented in wx) wxWidgets docs: wxMessageDialog
This class is derived (and can use functions) from: wxDialog wxTopLevelWindow wxWindow wxEvtHandler. Full inheritance chain, slaying in order. β¨
π DATA TYPES π
Only one type here, and itβs iconic:
wxMessageDialog() = wx:wx_object()
β¨ EXPORTS β¨
new(Parent, Message) -> wxMessageDialog()
Types:
Parent = wxWindow:wxWindow()
Message = unicode:chardata()
Thatβs the simple constructor moment: parent window plus message, no extra options. Clean. Minimal. Very demure. π
new(Parent, Message, Options :: [Option]) -> wxMessageDialog()
Types:
Parent = wxWindow:wxWindow()
Message = unicode:chardata()
Option =
{caption, unicode:chardata()} |
{style, integer()} |
{pos, {X :: integer(), Y :: integer()}}
Constructor specifying the message box properties. Yep, thatβs the exact sentence, and itβs doing exactly what it says. β¨
Use wxDialog:showModal/1 to show the dialog. Thatβs the βmake it actually appearβ step, bestie. π
style may be a bit list of the identifiers described above. Bit list energy: combine those style identifiers carefully.
β οΈ Notice that not all styles are compatible: only one ofwxOKandwxYES_NOmay be specified (and one of them must be specified) and at most one default button style can be used and it is only valid if the corresponding button is shown in the message box. fr fr, this is the compatibility warning β do not freestyle it. π
destroy(This :: wxMessageDialog()) -> ok
Destroys the object. bye bestie, object is gone π
mwah, later besties π β cute little sign-off from the footer: source/source-ish credit is wxWidgets team., version is wx 2.2.2.1, and this page is wxMessageDialog(3erl). Date? Not on this footer, so Iβm not gonna invent one, periodt. πβ¨
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms