1wxSingleChoiceDialog(3) Erlang Module Definition wxSingleChoiceDialog(3)
2
3
4
6 wxSingleChoiceDialog - Functions for wxSingleChoiceDialog class
7
9 This class represents a dialog that shows a list of strings, and allows
10 the user to select one. Double-clicking on a list item is equivalent to
11 single-clicking and then pressing OK.
12
13 Styles
14
15 This class supports the following styles:
16
17 See: Overview cmndlg, wxMultiChoiceDialog
18
19 This class is derived (and can use functions) from: wxDialog wxTo‐
20 pLevelWindow wxWindow wxEvtHandler
21
22 wxWidgets docs: wxSingleChoiceDialog
23
25 wxSingleChoiceDialog() = wx:wx_object()
26
28 new(Parent, Message, Caption, Choices) -> wxSingleChoiceDialog()
29
30 Types:
31
32 Parent = wxWindow:wxWindow()
33 Message = Caption = unicode:chardata()
34 Choices = [unicode:chardata()]
35
36 new(Parent, Message, Caption, Choices, Options :: [Option]) ->
37 wxSingleChoiceDialog()
38
39 Types:
40
41 Parent = wxWindow:wxWindow()
42 Message = Caption = unicode:chardata()
43 Choices = [unicode:chardata()]
44 Option =
45 {style, integer()} | {pos, {X :: integer(), Y :: inte‐
46 ger()}}
47
48 Constructor, taking an array of wxString (not implemented in wx)
49 choices and optional client data.
50
51 Remark: Use wxDialog:showModal/1 to show the dialog.
52
53 getSelection(This) -> integer()
54
55 Types:
56
57 This = wxSingleChoiceDialog()
58
59 Returns the index of selected item.
60
61 getStringSelection(This) -> unicode:charlist()
62
63 Types:
64
65 This = wxSingleChoiceDialog()
66
67 Returns the selected string.
68
69 setSelection(This, Selection) -> ok
70
71 Types:
72
73 This = wxSingleChoiceDialog()
74 Selection = integer()
75
76 Sets the index of the initially selected item.
77
78 destroy(This :: wxSingleChoiceDialog()) -> ok
79
80 Destroys the object.
81
82
83
84wxWidgets team. wx 2.2.2 wxSingleChoiceDialog(3)