1wxControl(3) Erlang Module Definition wxControl(3)
2
3
4
6 wxControl - Functions for wxControl class
7
9 This is the base class for a control or "widget".
10
11 A control is generally a small window which processes user input and/or
12 displays one or more item of data.
13
14 See: wxValidator (not implemented in wx)
15
16 This class is derived (and can use functions) from: wxWindow wx‐
17 EvtHandler
18
19 wxWidgets docs: wxControl
20
22 Event types emitted from this class: command_text_copy, com‐
23 mand_text_cut, command_text_paste
24
26 wxControl() = wx:wx_object()
27
29 getLabel(This) -> unicode:charlist()
30
31 Types:
32
33 This = wxControl()
34
35 Returns the control's label, as it was passed to setLabel/2.
36
37 Note that the returned string may contains mnemonics ("&" char‐
38 acters) if they were passed to the setLabel/2 function; use Get‐
39 LabelText() (not implemented in wx) if they are undesired.
40
41 Also note that the returned string is always the string which
42 was passed to setLabel/2 but may be different from the string
43 passed to SetLabelText() (not implemented in wx) (since this
44 last one escapes mnemonic characters).
45
46 setLabel(This, Label) -> ok
47
48 Types:
49
50 This = wxControl()
51 Label = unicode:chardata()
52
53 Sets the control's label.
54
55 All "&" characters in the label are special and indicate that
56 the following character is a mnemonic for this control and can
57 be used to activate it from the keyboard (typically by using Alt
58 key in combination with it). To insert a literal ampersand char‐
59 acter, you need to double it, i.e. use "&&". If this behaviour
60 is undesirable, use SetLabelText() (not implemented in wx) in‐
61 stead.
62
63
64
65wxWidgets team. wx 2.1.4 wxControl(3)