wxSingleChoiceDialog(3erl)
π NAME π
okay bestie, this is wxSingleChoiceDialog(3erl) β the Erlang Module Definition page, and itβs giving βdialog for picking exactly one thingβ energy β¨
wxSingleChoiceDialog β Functions for wxSingleChoiceDialog class π
πΈ DESCRIPTION πΈ
okay so this class represents a dialog that shows a list of strings and lets the user select one. no cap, thatβs the main-character job π . Double-clicking on a list item is equivalent to single-clicking and then pressing OK β literally the same outcome, bestie.
π Styles π
The page says: This class supports the following styles: β and thenβ¦ the list is empty on this page, bestie π« . Thatβs the vibe the original is serving.
See: Overview cmndlg, wxMultiChoiceDialog π¦
This class is derived (and can use functions) from: wxDialog wxTopLevelWindow wxWindow wxEvtHandler π
wxWidgets docs: wxSingleChoiceDialog π
π§ DATA TYPES π§
wxSingleChoiceDialog() = wx:wx_object()
π EXPORTS π
new(Parent, Message, Caption, Choices) -> wxSingleChoiceDialog()
new(Parent, Message, Caption, Choices) -> wxSingleChoiceDialog()
Types:
Parent = wxWindow:wxWindow()
Message = Caption = unicode:chardata()
Choices = [unicode:chardata()]
new(Parent, Message, Caption, Choices, Options :: [Option]) -> wxSingleChoiceDialog()
new(Parent, Message, Caption, Choices, Options :: [Option]) ->
wxSingleChoiceDialog()
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 and optional client data. yes, the docs literally say β(not implemented in wx)β β donβt shoot the messenger π
Remark: Use wxDialog:showModal/1 to show the dialog. thatβs the official move, bestie π«Ά
getSelection(This) -> integer()
getSelection(This) -> integer()
Types:
This = wxSingleChoiceDialog()
Returns the index of selected item π₯
getStringSelection(This) -> unicode:charlist()
getStringSelection(This) -> unicode:charlist()
Types:
This = wxSingleChoiceDialog()
Returns the selected string π
setSelection(This, Selection) -> ok
setSelection(This, Selection) -> ok
Types:
This = wxSingleChoiceDialog()
Selection = integer()
Sets the index of the initially selected item β¨
destroy(This :: wxSingleChoiceDialog()) -> ok
destroy(This :: wxSingleChoiceDialog()) -> ok
Destroys the object π β but, like, the normal object-destroying way, not drama.
okay thatβs the whole page, bestie! source/version sign-off: wxWidgets team., wx 2.2.2.1, and the page tag wxSingleChoiceDialog(3erl) β thatβs the footer vibe, no separate date in this one πβ¨
π¦ 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