1wxCalendarCtrl(3) Erlang Module Definition wxCalendarCtrl(3)
2
3
4
6 wxCalendarCtrl - See external documentation: wxCalendarCtrl.
7
9 See external documentation: wxCalendarCtrl.
10
11 This class is derived (and can use functions) from:
12 wxControl
13 wxWindow
14 wxEvtHandler
15
17 wxCalendarCtrl():
18
19
20 An object reference, The representation is internal and can be
21 changed without notice. It can't be used for comparsion stored on
22 disc or distributed for use on other nodes.
23
25 new() -> wxCalendarCtrl()
26
27 See external documentation.
28
29 new(Parent, Id) -> wxCalendarCtrl()
30
31 Types:
32
33 Parent = wxWindow:wxWindow()
34 Id = integer()
35
36 Equivalent to new(Parent, Id, []).
37
38 new(Parent, Id, Options::[Option]) -> wxCalendarCtrl()
39
40 Types:
41
42 Parent = wxWindow:wxWindow()
43 Id = integer()
44 Option = {date, wx:wx_datetime()} | {pos, {X::integer(),
45 Y::integer()}} | {size, {W::integer(), H::integer()}} |
46 {style, integer()}
47
48 See external documentation.
49
50 create(This, Parent, Id) -> boolean()
51
52 Types:
53
54 This = wxCalendarCtrl()
55 Parent = wxWindow:wxWindow()
56 Id = integer()
57
58 Equivalent to create(This, Parent, Id, []).
59
60 create(This, Parent, Id, Options::[Option]) -> boolean()
61
62 Types:
63
64 This = wxCalendarCtrl()
65 Parent = wxWindow:wxWindow()
66 Id = integer()
67 Option = {date, wx:wx_datetime()} | {pos, {X::integer(),
68 Y::integer()}} | {size, {W::integer(), H::integer()}} |
69 {style, integer()}
70
71 See external documentation.
72
73 setDate(This, Date) -> boolean()
74
75 Types:
76
77 This = wxCalendarCtrl()
78 Date = wx:wx_datetime()
79
80 See external documentation.
81
82 getDate(This) -> wx:wx_datetime()
83
84 Types:
85
86 This = wxCalendarCtrl()
87
88 See external documentation.
89
90 enableYearChange(This) -> ok
91
92 Types:
93
94 This = wxCalendarCtrl()
95
96 This function is deprecated: deprecated function not available
97 in wxWidgets-2.9 and later
98
99 Equivalent to enableYearChange(This, []).
100
101 enableYearChange(This, Options::[Option]) -> ok
102
103 Types:
104
105 This = wxCalendarCtrl()
106 Option = {enable, boolean()}
107
108 This function is deprecated: deprecated function not available
109 in wxWidgets-2.9 and later
110
111 See external documentation.
112
113 enableMonthChange(This) -> ok
114
115 Types:
116
117 This = wxCalendarCtrl()
118
119 Equivalent to enableMonthChange(This, []).
120
121 enableMonthChange(This, Options::[Option]) -> ok
122
123 Types:
124
125 This = wxCalendarCtrl()
126 Option = {enable, boolean()}
127
128 See external documentation.
129
130 enableHolidayDisplay(This) -> ok
131
132 Types:
133
134 This = wxCalendarCtrl()
135
136 Equivalent to enableHolidayDisplay(This, []).
137
138 enableHolidayDisplay(This, Options::[Option]) -> ok
139
140 Types:
141
142 This = wxCalendarCtrl()
143 Option = {display, boolean()}
144
145 See external documentation.
146
147 setHeaderColours(This, ColFg, ColBg) -> ok
148
149 Types:
150
151 This = wxCalendarCtrl()
152 ColFg = wx:wx_colour()
153 ColBg = wx:wx_colour()
154
155 See external documentation.
156
157 getHeaderColourFg(This) -> wx:wx_colour4()
158
159 Types:
160
161 This = wxCalendarCtrl()
162
163 See external documentation.
164
165 getHeaderColourBg(This) -> wx:wx_colour4()
166
167 Types:
168
169 This = wxCalendarCtrl()
170
171 See external documentation.
172
173 setHighlightColours(This, ColFg, ColBg) -> ok
174
175 Types:
176
177 This = wxCalendarCtrl()
178 ColFg = wx:wx_colour()
179 ColBg = wx:wx_colour()
180
181 See external documentation.
182
183 getHighlightColourFg(This) -> wx:wx_colour4()
184
185 Types:
186
187 This = wxCalendarCtrl()
188
189 See external documentation.
190
191 getHighlightColourBg(This) -> wx:wx_colour4()
192
193 Types:
194
195 This = wxCalendarCtrl()
196
197 See external documentation.
198
199 setHolidayColours(This, ColFg, ColBg) -> ok
200
201 Types:
202
203 This = wxCalendarCtrl()
204 ColFg = wx:wx_colour()
205 ColBg = wx:wx_colour()
206
207 See external documentation.
208
209 getHolidayColourFg(This) -> wx:wx_colour4()
210
211 Types:
212
213 This = wxCalendarCtrl()
214
215 See external documentation.
216
217 getHolidayColourBg(This) -> wx:wx_colour4()
218
219 Types:
220
221 This = wxCalendarCtrl()
222
223 See external documentation.
224
225 getAttr(This, Day) -> wxCalendarDateAttr:wxCalendarDateAttr()
226
227 Types:
228
229 This = wxCalendarCtrl()
230 Day = integer()
231
232 See external documentation.
233
234 setAttr(This, Day, Attr) -> ok
235
236 Types:
237
238 This = wxCalendarCtrl()
239 Day = integer()
240 Attr = wxCalendarDateAttr:wxCalendarDateAttr()
241
242 See external documentation.
243
244 setHoliday(This, Day) -> ok
245
246 Types:
247
248 This = wxCalendarCtrl()
249 Day = integer()
250
251 See external documentation.
252
253 resetAttr(This, Day) -> ok
254
255 Types:
256
257 This = wxCalendarCtrl()
258 Day = integer()
259
260 See external documentation.
261
262 hitTest(This, Pos) -> Result
263
264 Types:
265
266 Result = {Res::wx:wx_enum(), Date::wx:wx_datetime(),
267 Wd::wx:wx_enum()}
268 This = wxCalendarCtrl()
269 Pos = {X::integer(), Y::integer()}
270
271 See external documentation.
272 Wd = ?wxDateTime_Sun | ?wxDateTime_Mon | ?wxDateTime_Tue |
273 ?wxDateTime_Wed | ?wxDateTime_Thu | ?wxDateTime_Fri | ?wxDate‐
274 Time_Sat | ?wxDateTime_Inv_WeekDay
275 Res = ?wxCAL_HITTEST_NOWHERE | ?wxCAL_HITTEST_HEADER |
276 ?wxCAL_HITTEST_DAY | ?wxCAL_HITTEST_INCMONTH |
277 ?wxCAL_HITTEST_DECMONTH | ?wxCAL_HITTEST_SURROUNDING_WEEK
278
279 destroy(This::wxCalendarCtrl()) -> ok
280
281 Destroys this object, do not use object again
282
284 <>
285
286
287
288 wx 1.9 wxCalendarCtrl(3)