wxMultiChoiceDialog(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– 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:

  • wxDialog
  • wxTopLevelWindow
  • wxWindow
  • wxEvtHandler
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