wxMultiChoiceDialog(3erl)
π wxMultiChoiceDialog (3erl) β Erlang Module Definition π
okay so bestie, this is the page for wxMultiChoiceDialog β Functions for wxMultiChoiceDialog class. Erlang module definition, wx 2.2.2.1 vibes. let's get into it β¨
πΈ NAME πΈ
wxMultiChoiceDialog β Functions for wxMultiChoiceDialog class. that's it, that's the name, she's iconic π
β¨ DESCRIPTION β¨
okay so picture this: this class represents a dialog that shows a list of strings, and allows the user to select one or more. literally that's her whole job π«Ά
π¦ Styles π¦
This class supports the following styles:
- β¦that's it. the list is empty bestie π the manual says "the following styles" and then just. nothing. no cap. moving on.
See: Overview cmndlg, wxSingleChoiceDialog β go look at those if you want the full lore π
This class is derived (and can use functions) from: wxDialog wxTopLevelWindow wxWindow wxEvtHandler β so she inherited ALL the main character energy from that whole family tree, fr fr π
wxWidgets docs: wxMultiChoiceDialog
π DATA TYPES π
wxMultiChoiceDialog()=wx:wx_object()β yeah she's just a wx object under all the glitter π
π₯ EXPORTS π₯
β new(Parent, Message, Caption, Choices) -> wxMultiChoiceDialog()
Types:
Parent = wxWindow:wxWindow()
Message = Caption = unicode:chardata()
Choices = [unicode:chardata()]
the basic constructor, no options, just vibes β¨
β new(Parent, Message, Caption, Choices, Options :: [Option]) -> wxMultiChoiceDialog()
Types:
Parent = wxWindow:wxWindow()
Message = Caption = unicode:chardata()
Choices = [unicode:chardata()]
Option =
{style, integer()} | {pos, {X :: integer(), Y ::
integer()}}
Constructor taking an array of wxString (not implemented in wx) choices.
π heads up bestie: the wxString array choices thing is not implemented in wx β so like, don't come for her when that specific bit isn't there π
Remark: Use wxDialog:showModal/1 to show the dialog. like, she exists but she's shy, you gotta call showModal/1 to actually make her appear π
β getSelections(This) -> [integer()]
Types:
This = wxMultiChoiceDialog()
Returns array with indexes of selected items. so you get the indexes, not the strings β remember that, iykyk π
β setSelections(This, Selections) -> ok
Types:
This = wxMultiChoiceDialog()
Selections = [integer()]
Sets selected items from the array of selected items' indexes. you feed her indexes, she picks those items, periodt π
β destroy(This :: wxMultiChoiceDialog()) -> ok
Destroys the object.
π yes, destroy literally destroys her. she's gone. poof. no coming back. it's giving dramatic exit πΈ
slay, that's the whole page π no filler, every option, every type, every warning β we ate and left no crumbs π
sign-off time: brought to you by the wxWidgets team, wx 2.2.2.1, dated wxMultiChoiceDialog(3erl) β mwah, go build something cute π«Άπ
π¦ 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