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