wxMultiChoiceDialog(3)
π wxMultiChoiceDialog π
okay bestie, so wxMultiChoiceDialog is an Erlang module from the wx crew β the wxMultiChoiceDialog(3) page, no cap. And before you ask: yes, it's exactly what it sounds like. This class is a dialog that shows you a list of strings, and lets the user pick one or more of them. Multi. Choice. Periodt. β¨
πΈ NAME πΈ
wxMultiChoiceDialog β this class represents a dialog that shows a list of strings, and allows the user to select one or more.
β¨ DESCRIPTION β¨
π Styles
This class supports the following styles, and you're gonna wanna know all of them:
wxOKβ shows an OK button. πwxCANCELβ shows a Cancel button. πwxCENTREβ centres the message. literal main character energy, it belongs in the middle.
π See also
- Overview
cmndlg wxSingleChoiceDialog
π«Ά It's giving family tree
This class is derived, and can use functions, from:
wxDialogwxTopLevelWindowwxWindowwxEvtHandler
wxWidgets docs: wxMultiChoiceDialog
π¦ DATA TYPES π¦
wxMultiChoiceDialog() :: wx:wx_object().
π FUNCTIONS π
destroy(This :: wxMultiChoiceDialog()) -> ok.
Destroys the object. bye bestie πβ¨
getSelections(This) -> [integer()] when This :: wxMultiChoiceDialog().
Returns array with indexes of selected items. so like, the receipts of what the user picked π₯
new(Parent, Message, Caption, Choices, [Option]) -> wxMultiChoiceDialog() when Parent :: wxWindow:wxWindow(), Message :: unicode:chardata(), 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. ngl, that "not implemented in wx" bit is a whole mood β it's literally right there in the docs.
Remark: Use wxDialog:showModal/1 to show the dialog. don't just build it and stare at it, bestie, you gotta show it.
setSelections(This, Selections) -> ok when This :: wxMultiChoiceDialog(), Selections :: [integer()].
Sets selected items from the array of selected items' indexes. you hand it the index numbers, it handles the vibes β
Ericsson AB made this, it's from wx 2.6, and that's the whole page bestie πβ¨ go select multiple things, you've earned it ππ¦
π¦ 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