forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wMessageDialog.html
432 lines (353 loc) · 43.2 KB
/
wMessageDialog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- This file is generated by Nim. -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Favicon -->
<link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAUAAAAF////AP///wD///8A////AP///wD///8A////AP///wD///8A////AAAAAAIAAABbAAAAlQAAAKIAAACbAAAAmwAAAKIAAACVAAAAWwAAAAL///8A////AP///wD///8A////AAAAABQAAADAAAAAYwAAAA3///8A////AP///wD///8AAAAADQAAAGMAAADAAAAAFP///wD///8A////AP///wAAAACdAAAAOv///wD///8A////AP///wD///8A////AP///wD///8AAAAAOgAAAJ3///8A////AP///wAAAAAnAAAAcP///wAAAAAoAAAASv///wD///8A////AP///wAAAABKAAAAKP///wAAAABwAAAAJ////wD///8AAAAAgQAAABwAAACIAAAAkAAAAJMAAACtAAAAFQAAABUAAACtAAAAkwAAAJAAAACIAAAAHAAAAIH///8A////AAAAAKQAAACrAAAAaP///wD///8AAAAARQAAANIAAADSAAAARf///wD///8AAAAAaAAAAKsAAACk////AAAAADMAAACcAAAAnQAAABj///8A////AP///wAAAAAYAAAAGP///wD///8A////AAAAABgAAACdAAAAnAAAADMAAAB1AAAAwwAAAP8AAADpAAAAsQAAAE4AAAAb////AP///wAAAAAbAAAATgAAALEAAADpAAAA/wAAAMMAAAB1AAAAtwAAAOkAAAD/AAAA/wAAAP8AAADvAAAA3gAAAN4AAADeAAAA3gAAAO8AAAD/AAAA/wAAAP8AAADpAAAAtwAAAGUAAAA/AAAA3wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8AAADfAAAAPwAAAGX///8A////AAAAAEgAAADtAAAAvwAAAL0AAADGAAAA7wAAAO8AAADGAAAAvQAAAL8AAADtAAAASP///wD///8A////AP///wD///8AAAAAO////wD///8A////AAAAAIcAAACH////AP///wD///8AAAAAO////wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A////AP///wD///8A//8AAP//AAD4HwAA7/cAAN/7AAD//wAAoYUAAJ55AACf+QAAh+EAAAAAAADAAwAA4AcAAP5/AAD//wAA//8AAA=="/>
<link rel="icon" type="image/png" sizes="32x32" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4QQQEwksSS9ZWwAAAk1JREFUWMPtll2ITVEUx39nn/O7Y5qR8f05wtCUUr6ZIS++8pEnkZInPImneaCQ5METNdOkeFBKUhMPRIkHKfEuUZSUlGlKPN2TrgfncpvmnntnmlEyq1Z7t89/rf9a6+y99oZxGZf/XeIq61EdtgKXgdXA0xrYAvBjOIF1AI9zvjcC74BSpndrJPkBWDScTF8Aa4E3wDlgHbASaANmVqlcCnwHvgDvgVfAJ+AikAAvgfVZwLnSVZHZaOuKoQi3ZOMi4NkYkpe1p4J7A8BpYAD49hfIy/oqG0+hLomiKP2L5L+1ubn5115S+3OAn4EnwBlgMzCjyt6ZAnQCJ4A7wOs88iRJHvw50HoujuPBoCKwHWiosy8MdfZnAdcHk8dxXFJ3VQbQlCTJvRBCGdRbD4M6uc5glpY3eAihpN5S5w12diSEcCCEcKUO4ljdr15T76ur1FDDLIQQ3qv71EdDOe3Kxj3leRXyk+pxdWnFWod6Wt2bY3de3aSuUHcPBVimHs7mK9WrmeOF6lR1o9qnzskh2ar2qm1qizpfXaPeVGdlmGN5pb09qMxz1Xb1kLqgzn1RyH7JUXW52lr5e/Kqi9qpto7V1atuUzfnARrV7jEib1T76gG2qxdGmXyiekkt1GswPTtek0aBfJp6YySGBfWg2tPQ0FAYgf1stUfdmdcjarbYJEniKIq6gY/Aw+zWHAC+p2labGpqiorFYgGYCEzN7oQdQClN07O1/EfDyGgC0ALMBdYAi4FyK+4H3gLPsxfR1zRNi+NP7nH5J+QntnXe5B5mpfQAAAAASUVORK5CYII=">
<!-- Google fonts -->
<link href='https://fonts.googleapis.com/css?family=Lato:400,600,900' rel='stylesheet' type='text/css'/>
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro:400,500,600' rel='stylesheet' type='text/css'/>
<!-- CSS -->
<title>wMessageDialog</title>
<link rel="stylesheet" type="text/css" href="nimdoc.out.css">
<script type="text/javascript" src="dochack.js"></script>
<script type="text/javascript">
function main() {
var pragmaDots = document.getElementsByClassName("pragmadots");
for (var i = 0; i < pragmaDots.length; i++) {
pragmaDots[i].onclick = function(event) {
// Hide tease
event.target.parentNode.style.display = "none";
// Show actual
event.target.parentNode.nextElementSibling.style.display = "inline";
}
}
const toggleSwitch = document.querySelector('.theme-switch input[type="checkbox"]');
function switchTheme(e) {
if (e.target.checked) {
document.documentElement.setAttribute('data-theme', 'dark');
localStorage.setItem('theme', 'dark');
} else {
document.documentElement.setAttribute('data-theme', 'light');
localStorage.setItem('theme', 'light');
}
}
toggleSwitch.addEventListener('change', switchTheme, false);
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.documentElement.setAttribute('data-theme', "dark");
toggleSwitch.checked = true;
} else if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
document.documentElement.setAttribute('data-theme', "light");
toggleSwitch.checked = false;
} else {
const currentTheme = localStorage.getItem('theme') ? localStorage.getItem('theme') : null;
if (currentTheme) {
document.documentElement.setAttribute('data-theme', currentTheme);
if (currentTheme === 'dark') {
toggleSwitch.checked = true;
}
}
}
}
</script>
</head>
<body onload="main()">
<div class="document" id="documentId">
<div class="container">
<h1 class="title">wMessageDialog</h1>
<div class="row">
<div class="three columns">
<div class="theme-switch-wrapper">
<label class="theme-switch" for="checkbox">
<input type="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
<em>Dark Mode</em>
</div>
<div id="global-links">
<ul class="simple">
<li>
<a href="https://github.com/khchen/wNim">Github Project</a>
</li>
<li>
<a href="wNim.html">Main Page</a>
</li>
</ul>
</div>
<ul class="simple simple-toc" id="toc-list">
<li>
<a class="reference reference-toplevel" href="#10" id="60">Consts</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#wOk"
title="wOk = 0x00000000"><wbr />w<wbr />Ok<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wYesNo"
title="wYesNo = 0x00000004"><wbr />w<wbr />Yes<wbr />No<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wOkCancel"
title="wOkCancel = 0x00000001"><wbr />w<wbr />Ok<wbr />Cancel<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wYesNoCancel"
title="wYesNoCancel = 0x00000003"><wbr />w<wbr />Yes<wbr />No<wbr />Cancel<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wRetryCancel"
title="wRetryCancel = 0x00000005"><wbr />w<wbr />Retry<wbr />Cancel<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wAbortRetryIgnore"
title="wAbortRetryIgnore = 0x00000002"><wbr />w<wbr />Abort<wbr />Retry<wbr />Ignore<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCancelTryContinue"
title="wCancelTryContinue = 0x00000006"><wbr />w<wbr />Cancel<wbr />Try<wbr />Continue<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconHand"
title="wIconHand = 0x00000010"><wbr />w<wbr />Icon<wbr />Hand<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconErr"
title="wIconErr = 0x00000010"><wbr />w<wbr />Icon<wbr />Err<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconStop"
title="wIconStop = 0x00000010"><wbr />w<wbr />Icon<wbr />Stop<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconQuestion"
title="wIconQuestion = 0x00000020"><wbr />w<wbr />Icon<wbr />Question<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconExclamation"
title="wIconExclamation = 0x00000030"><wbr />w<wbr />Icon<wbr />Exclamation<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconWarning"
title="wIconWarning = 0x00000030"><wbr />w<wbr />Icon<wbr />Warning<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconInformation"
title="wIconInformation = 0x00000040"><wbr />w<wbr />Icon<wbr />Information<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wIconAsterisk"
title="wIconAsterisk = 0x00000040"><wbr />w<wbr />Icon<wbr />Asterisk<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wButton1_Default"
title="wButton1_Default = 0x00000000"><wbr />w<wbr />Button1_<wbr />Default<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wButton2_Default"
title="wButton2_Default = 0x00000100"><wbr />w<wbr />Button2_<wbr />Default<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wButton3_Default"
title="wButton3_Default = 0x00000200"><wbr />w<wbr />Button3_<wbr />Default<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wButton4_Default"
title="wButton4_Default = 0x00000300"><wbr />w<wbr />Button4_<wbr />Default<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#12" id="62">Procs</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#init%2CwMessageDialog%2CwWindow%2Cstring%2Cstring%2CwStyle"
title="init(self: wMessageDialog; owner: wWindow = nil; message: string = "";
caption: string = ""; style: wStyle = wOK)"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#MessageDialog%2CwWindow%2Cstring%2Cstring%2CwStyle"
title="MessageDialog(owner: wWindow = nil; message: string = ""; caption: string = "";
style: wStyle = wOK): wMessageDialog"><wbr />Message<wbr />Dialog<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getMessage%2CwMessageDialog"
title="getMessage(self: wMessageDialog): string"><wbr />get<wbr />Message<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getCaption%2CwMessageDialog"
title="getCaption(self: wMessageDialog): string"><wbr />get<wbr />Caption<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getStyle%2CwMessageDialog"
title="getStyle(self: wMessageDialog): wStyle"><wbr />get<wbr />Style<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setMessage%2CwMessageDialog%2Cstring"
title="setMessage(self: var wMessageDialog; message: string)"><wbr />set<wbr />Message<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setCaption%2CwMessageDialog%2Cstring"
title="setCaption(self: var wMessageDialog; caption: string)"><wbr />set<wbr />Caption<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setStyle%2CwMessageDialog%2CwStyle"
title="setStyle(self: var wMessageDialog; style: wStyle)"><wbr />set<wbr />Style<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setOKLabel%2CwMessageDialog%2Cstring"
title="setOKLabel(self: wMessageDialog; ok: string)"><wbr />set<wbr />OKLabel<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setOKCancelLabels%2CwMessageDialog%2Cstring%2Cstring"
title="setOKCancelLabels(self: wMessageDialog; ok: string; cancel: string)"><wbr />set<wbr />OKCancel<wbr />Labels<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setYesNoCancelLabels%2CwMessageDialog%2Cstring%2Cstring%2Cstring"
title="setYesNoCancelLabels(self: wMessageDialog; yes: string; no: string; cancel: string)"><wbr />set<wbr />Yes<wbr />No<wbr />Cancel<wbr />Labels<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setYesNoLabels%2CwMessageDialog%2Cstring%2Cstring"
title="setYesNoLabels(self: wMessageDialog; yes: string; no: string)"><wbr />set<wbr />Yes<wbr />No<wbr />Labels<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setRetryCancelLabels%2CwMessageDialog%2Cstring%2Cstring"
title="setRetryCancelLabels(self: wMessageDialog; retry: string; cancel: string)"><wbr />set<wbr />Retry<wbr />Cancel<wbr />Labels<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setAbortRetryIgnoreLabels%2CwMessageDialog%2Cstring%2Cstring%2Cstring"
title="setAbortRetryIgnoreLabels(self: wMessageDialog; abort: string; retry: string;
ignore: string)"><wbr />set<wbr />Abort<wbr />Retry<wbr />Ignore<wbr />Labels<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setCancelTryContinueLabels%2CwMessageDialog%2Cstring%2Cstring%2Cstring"
title="setCancelTryContinueLabels(self: wMessageDialog; cancel: string; tryagain: string;
cont: string)"><wbr />set<wbr />Cancel<wbr />Try<wbr />Continue<wbr />Labels<span class="attachedType"></span></a></li>
<li><a class="reference" href="#showModal%2CwMessageDialog"
title="showModal(self: wMessageDialog): wId"><wbr />show<wbr />Modal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#display%2CwMessageDialog"
title="display(self: wMessageDialog): wId"><wbr />display<span class="attachedType"></span></a></li>
</ul>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc">A dialog that shows a single or multi-line message, with a choice of OK, Yes, No and Cancel buttons. Only modal dialog is supported.<table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Superclass:</th><td><a class="reference external" href="wDialog.html">wDialog</a></td></tr>
</tbody></table><table class="docinfo" frame="void" rules="none"><col class="docinfo-name" /><col class="docinfo-content" /><tbody valign="top"><tr><th class="docinfo-name">Styles:</th><td><table border="1" class="docutils"><tr><th>Styles</th><th>Description</th></tr>
<tr><td>wOk</td><td>The message box contains one push button: OK. This is the default.</td></tr>
<tr><td>wYesNo</td><td>The message box contains two push buttons: Yes and No.</td></tr>
<tr><td>wOkCancel</td><td>The message box contains two push buttons: OK and Cancel.</td></tr>
<tr><td>wYesNoCancel</td><td>The message box contains three push buttons: Yes, No, and Cancel.</td></tr>
<tr><td>wRetryCancel</td><td>The message box contains two push buttons: Retry and Cancel.</td></tr>
<tr><td>wAbortRetryIgnore</td><td>The message box contains three push buttons: Abort, Retry, and Ignore.</td></tr>
<tr><td>wCancelTryContinue</td><td>The message box contains three push buttons: Cancel, Try Again, Continue.</td></tr>
<tr><td>wIconHand</td><td>A stop-sign icon appears in the message box.</td></tr>
<tr><td>wIconErr</td><td>A stop-sign icon appears in the message box.</td></tr>
<tr><td>wIconStop</td><td>A stop-sign icon appears in the message box.</td></tr>
<tr><td>wIconQuestion</td><td>A question-mark icon appears in the message box.</td></tr>
<tr><td>wIconExclamation</td><td>An exclamation-point icon appears in the message box.</td></tr>
<tr><td>wIconWarning</td><td>An exclamation-point icon appears in the message box.</td></tr>
<tr><td>wIconInformation</td><td>An icon consisting of a lowercase letter i in a circle appears in the message box.</td></tr>
<tr><td>wIconAsterisk</td><td>An icon consisting of a lowercase letter i in a circle appears in the message box.</td></tr>
<tr><td>wButton1_Default</td><td>The first button is the default button. This is the default.</td></tr>
<tr><td>wButton2_Default</td><td>The second button is the default button.</td></tr>
<tr><td>wButton3_Default</td><td>The third button is the default button.</td></tr>
<tr><td>wButton4_Default</td><td>The fourth button is the default button.</td></tr>
<tr><td>wStayOnTop</td><td>The message box will stay on top of all other windows.</td></tr>
</table></td></tr>
</tbody></table></p>
<div class="section" id="10">
<h1><a class="toc-backref" href="#10">Consts</a></h1>
<dl class="item">
<a id="wOk"></a>
<dt><pre><a href="wMessageDialog.html#wOk"><span class="Identifier">wOk</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000000</span></pre></dt>
<a id="wYesNo"></a>
<dt><pre><a href="wMessageDialog.html#wYesNo"><span class="Identifier">wYesNo</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000004</span></pre></dt>
<a id="wOkCancel"></a>
<dt><pre><a href="wMessageDialog.html#wOkCancel"><span class="Identifier">wOkCancel</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000001</span></pre></dt>
<a id="wYesNoCancel"></a>
<dt><pre><a href="wMessageDialog.html#wYesNoCancel"><span class="Identifier">wYesNoCancel</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000003</span></pre></dt>
<a id="wRetryCancel"></a>
<dt><pre><a href="wMessageDialog.html#wRetryCancel"><span class="Identifier">wRetryCancel</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000005</span></pre></dt>
<a id="wAbortRetryIgnore"></a>
<dt><pre><a href="wMessageDialog.html#wAbortRetryIgnore"><span class="Identifier">wAbortRetryIgnore</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000002</span></pre></dt>
<a id="wCancelTryContinue"></a>
<dt><pre><a href="wMessageDialog.html#wCancelTryContinue"><span class="Identifier">wCancelTryContinue</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000006</span></pre></dt>
<a id="wIconHand"></a>
<dt><pre><a href="wMessageDialog.html#wIconHand"><span class="Identifier">wIconHand</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000010</span></pre></dt>
<a id="wIconErr"></a>
<dt><pre><a href="wMessageDialog.html#wIconErr"><span class="Identifier">wIconErr</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000010</span></pre></dt>
<a id="wIconStop"></a>
<dt><pre><a href="wMessageDialog.html#wIconStop"><span class="Identifier">wIconStop</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000010</span></pre></dt>
<a id="wIconQuestion"></a>
<dt><pre><a href="wMessageDialog.html#wIconQuestion"><span class="Identifier">wIconQuestion</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000020</span></pre></dt>
<a id="wIconExclamation"></a>
<dt><pre><a href="wMessageDialog.html#wIconExclamation"><span class="Identifier">wIconExclamation</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000030</span></pre></dt>
<a id="wIconWarning"></a>
<dt><pre><a href="wMessageDialog.html#wIconWarning"><span class="Identifier">wIconWarning</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000030</span></pre></dt>
<a id="wIconInformation"></a>
<dt><pre><a href="wMessageDialog.html#wIconInformation"><span class="Identifier">wIconInformation</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000040</span></pre></dt>
<a id="wIconAsterisk"></a>
<dt><pre><a href="wMessageDialog.html#wIconAsterisk"><span class="Identifier">wIconAsterisk</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000040</span></pre></dt>
<a id="wButton1_Default"></a>
<dt><pre><a href="wMessageDialog.html#wButton1_Default"><span class="Identifier">wButton1_Default</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000000</span></pre></dt>
<a id="wButton2_Default"></a>
<dt><pre><a href="wMessageDialog.html#wButton2_Default"><span class="Identifier">wButton2_Default</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000100</span></pre></dt>
<a id="wButton3_Default"></a>
<dt><pre><a href="wMessageDialog.html#wButton3_Default"><span class="Identifier">wButton3_Default</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000200</span></pre></dt>
<a id="wButton4_Default"></a>
<dt><pre><a href="wMessageDialog.html#wButton4_Default"><span class="Identifier">wButton4_Default</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000300</span></pre></dt>
</dl></div>
<div class="section" id="12">
<h1><a class="toc-backref" href="#12">Procs</a></h1>
<dl class="item">
<a id="init,wMessageDialog,wWindow,string,string,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwMessageDialog%2CwWindow%2Cstring%2Cstring%2CwStyle"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">owner</span><span class="Other">:</span> <a href="wTypes.html#wWindow"><span class="Identifier">wWindow</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">;</span> <span class="Identifier">message</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span>
<span class="Identifier">caption</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span class="Other">=</span> <span class="Identifier">wOK</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wWindowError</span><span class="Other">,</span> <span class="Identifier">wCursorError</span><span class="Other">,</span> <span class="Identifier">IndexDefect</span><span class="Other">,</span> <span class="Identifier">wFontError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Initializer.
</dd>
<a id="MessageDialog,wWindow,string,string,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#MessageDialog%2CwWindow%2Cstring%2Cstring%2CwStyle"><span class="Identifier">MessageDialog</span></a><span class="Other">(</span><span class="Identifier">owner</span><span class="Other">:</span> <a href="wTypes.html#wWindow"><span class="Identifier">wWindow</span></a> <span class="Other">=</span> <span class="Keyword">nil</span><span class="Other">;</span> <span class="Identifier">message</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">caption</span><span class="Other">:</span> <span class="Identifier">string</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span>
<span class="Identifier">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span class="Other">=</span> <span class="Identifier">wOK</span><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">discardable</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">wWindowError</span><span class="Other">,</span> <span class="Identifier">wCursorError</span><span class="Other">,</span> <span class="Identifier">IndexDefect</span><span class="Other">,</span> <span class="Identifier">wFontError</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Constructor.
</dd>
<a id="getMessage,wMessageDialog"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getMessage%2CwMessageDialog"><span class="Identifier">getMessage</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Returns the message that will be displayed on the dialog.
</dd>
<a id="getCaption,wMessageDialog"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getCaption%2CwMessageDialog"><span class="Identifier">getCaption</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">string</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Gets the caption that will be displayed on the dialog.
</dd>
<a id="getStyle,wMessageDialog"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getStyle%2CwMessageDialog"><span class="Identifier">getStyle</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Gets the style.
</dd>
<a id="setMessage,wMessageDialog,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setMessage%2CwMessageDialog%2Cstring"><span class="Identifier">setMessage</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">message</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the message that will be displayed on the dialog.
</dd>
<a id="setCaption,wMessageDialog,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setCaption%2CwMessageDialog%2Cstring"><span class="Identifier">setCaption</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">caption</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the caption that will be displayed on the dialog.
</dd>
<a id="setStyle,wMessageDialog,wStyle"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setStyle%2CwMessageDialog%2CwStyle"><span class="Identifier">setStyle</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <span class="Keyword">var</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">style</span><span class="Other">:</span> <a href="wTypes.html#wStyle"><span class="Identifier">wStyle</span></a><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Sets the style of the dialog.
</dd>
<a id="setOKLabel,wMessageDialog,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setOKLabel%2CwMessageDialog%2Cstring"><span class="Identifier">setOKLabel</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">ok</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the OK button.
</dd>
<a id="setOKCancelLabels,wMessageDialog,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setOKCancelLabels%2CwMessageDialog%2Cstring%2Cstring"><span class="Identifier">setOKCancelLabels</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">ok</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">cancel</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span>
<span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the OK and Cancel buttons.
</dd>
<a id="setYesNoCancelLabels,wMessageDialog,string,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setYesNoCancelLabels%2CwMessageDialog%2Cstring%2Cstring%2Cstring"><span class="Identifier">setYesNoCancelLabels</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">yes</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">no</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">cancel</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the Yes, No and Cancel buttons.
</dd>
<a id="setYesNoLabels,wMessageDialog,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setYesNoLabels%2CwMessageDialog%2Cstring%2Cstring"><span class="Identifier">setYesNoLabels</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">yes</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">no</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the Yes and No buttons.
</dd>
<a id="setRetryCancelLabels,wMessageDialog,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setRetryCancelLabels%2CwMessageDialog%2Cstring%2Cstring"><span class="Identifier">setRetryCancelLabels</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">retry</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">cancel</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma">
<span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the Retry and Cancel buttons.
</dd>
<a id="setAbortRetryIgnoreLabels,wMessageDialog,string,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setAbortRetryIgnoreLabels%2CwMessageDialog%2Cstring%2Cstring%2Cstring"><span class="Identifier">setAbortRetryIgnoreLabels</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">abort</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">retry</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">ignore</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span> <span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the Abort, Retry and Ignore buttons.
</dd>
<a id="setCancelTryContinueLabels,wMessageDialog,string,string,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setCancelTryContinueLabels%2CwMessageDialog%2Cstring%2Cstring%2Cstring"><span class="Identifier">setCancelTryContinueLabels</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">;</span> <span class="Identifier">cancel</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span>
<span class="Identifier">tryagain</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">cont</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">)</span> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Overrides the default labels of the Cancel, Try Again and Continue buttons.
</dd>
<a id="showModal,wMessageDialog"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#showModal%2CwMessageDialog"><span class="Identifier">showModal</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wId"><span class="Identifier">wId</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">discardable</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Shows the dialog, returning one of wIdOk, wIdYes, wIdNo, wIdCancel, wIdTryAgain, wIdContinue, wIdAbort, wIdRetry or wIdIgnore.
</dd>
<a id="display,wMessageDialog"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#display%2CwMessageDialog"><span class="Identifier">display</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wMessageDialog"><span class="Identifier">wMessageDialog</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wId"><span class="Identifier">wId</span></a> <span><span class="Other">{</span><span class="Other pragmadots">...</span><span class="Other">}</span></span><span class="pragmawrap"><span class="Other">{.</span><span class="pragma"><span class="Identifier">inline</span><span class="Other">,</span> <span class="Identifier">discardable</span><span class="Other">,</span> <span class="Identifier">raises</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">Exception</span><span class="Other">]</span><span class="Other">,</span>
<span class="Identifier">tags</span><span class="Other">:</span> <span class="Other">[</span><span class="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Shows the dialog in modal mode, returning the selected button id. For wMessageDialog class, this function is the same as showModal().
</dd>
</dl></div>
</div>
</div>
<div class="row">
<div class="twelve-columns footer">
<span class="nim-sprite"></span>
<br/>
<small style="color: var(--hint);">Made with Nim.</small>
</div>
</div>
</div>
</div>
</body>
</html>