forked from khchen/wNim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wFrame.html
557 lines (450 loc) · 59.3 KB
/
wFrame.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
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
<?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>wFrame</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">wFrame</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="#wIconize"
title="wIconize = 0x20000000"><wbr />w<wbr />Iconize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wCaption"
title="wCaption = 0x00C00000"><wbr />w<wbr />Caption<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wMinimize"
title="wMinimize = 0x20000000"><wbr />w<wbr />Minimize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wMinimizeBox"
title="wMinimizeBox = 0x00020000"><wbr />w<wbr />Minimize<wbr />Box<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wMaximize"
title="wMaximize = 0x01000000"><wbr />w<wbr />Maximize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wMaximizeBox"
title="wMaximizeBox = 0x00010000"><wbr />w<wbr />Maximize<wbr />Box<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wSystemMenu"
title="wSystemMenu = 0x00080000"><wbr />w<wbr />System<wbr />Menu<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wResizeBorder"
title="wResizeBorder = 0x00040000"><wbr />w<wbr />Resize<wbr />Border<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wStayOnTop"
title="wStayOnTop = 34359738368'i64"><wbr />w<wbr />Stay<wbr />On<wbr />Top<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wModalFrame"
title="wModalFrame = 0x00000080"><wbr />w<wbr />Modal<wbr />Frame<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wFrameToolWindow"
title="wFrameToolWindow = 549755813888'i64"><wbr />w<wbr />Frame<wbr />Tool<wbr />Window<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wDefaultFrameStyle"
title="wDefaultFrameStyle = 13565952"><wbr />w<wbr />Default<wbr />Frame<wbr />Style<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wDefaultDialogStyle"
title="wDefaultDialogStyle = 1103819702272'i64"><wbr />w<wbr />Default<wbr />Dialog<wbr />Style<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wBallonNone"
title="wBallonNone = 0x00000000"><wbr />w<wbr />Ballon<wbr />None<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wBallonInfo"
title="wBallonInfo = 0x00000001"><wbr />w<wbr />Ballon<wbr />Info<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wBallonWarning"
title="wBallonWarning = 0x00000002"><wbr />w<wbr />Ballon<wbr />Warning<span class="attachedType"></span></a></li>
<li><a class="reference" href="#wBallonError"
title="wBallonError = 0x00000003"><wbr />w<wbr />Ballon<wbr />Error<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="#getMenuBar%2CwFrame"
title="getMenuBar(self: wFrame): wMenuBar"><wbr />get<wbr />Menu<wbr />Bar<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setTopMost%2CwFrame"
title="setTopMost(self: wFrame; top = true)"><wbr />set<wbr />Top<wbr />Most<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setIcon%2CwFrame%2CwIcon"
title="setIcon(self: wFrame; icon: wIcon)"><wbr />set<wbr />Icon<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getIcon%2CwFrame"
title="getIcon(self: wFrame): wIcon"><wbr />get<wbr />Icon<span class="attachedType"></span></a></li>
<li><a class="reference" href="#minimize%2CwFrame"
title="minimize(self: wFrame; flag = true)"><wbr />minimize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#iconize%2CwFrame"
title="iconize(self: wFrame; flag = true)"><wbr />iconize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#maximize%2CwFrame"
title="maximize(self: wFrame; flag = true)"><wbr />maximize<span class="attachedType"></span></a></li>
<li><a class="reference" href="#restore%2CwFrame"
title="restore(self: wFrame)"><wbr />restore<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isIconized%2CwFrame"
title="isIconized(self: wFrame): bool"><wbr />is<wbr />Iconized<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isMaximized%2CwFrame"
title="isMaximized(self: wFrame): bool"><wbr />is<wbr />Maximized<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enableCloseButton%2CwFrame"
title="enableCloseButton(self: wFrame; flag = true)"><wbr />enable<wbr />Close<wbr />Button<span class="attachedType"></span></a></li>
<li><a class="reference" href="#disableCloseButton%2CwFrame"
title="disableCloseButton(self: wFrame)"><wbr />disable<wbr />Close<wbr />Button<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enableMaximizeButton%2CwFrame"
title="enableMaximizeButton(self: wFrame; flag = true)"><wbr />enable<wbr />Maximize<wbr />Button<span class="attachedType"></span></a></li>
<li><a class="reference" href="#disableMaximizeButton%2CwFrame"
title="disableMaximizeButton(self: wFrame)"><wbr />disable<wbr />Maximize<wbr />Button<span class="attachedType"></span></a></li>
<li><a class="reference" href="#enableMinimizeButton%2CwFrame"
title="enableMinimizeButton(self: wFrame; flag = true)"><wbr />enable<wbr />Minimize<wbr />Button<span class="attachedType"></span></a></li>
<li><a class="reference" href="#disableMinimizeButton%2CwFrame"
title="disableMinimizeButton(self: wFrame)"><wbr />disable<wbr />Minimize<wbr />Button<span class="attachedType"></span></a></li>
<li><a class="reference" href="#shortcut%2CwFrame%2Cint%2Cint%2CwEventProc"
title="shortcut(self: wFrame; flag: int; keyCode: int; handler: wEventProc): wEventConnection"><wbr />shortcut<span class="attachedType"></span></a></li>
<li><a class="reference" href="#shortcut%2CwFrame%2Cint%2Cint%2CwEventNeatProc"
title="shortcut(self: wFrame; flag: int; keyCode: int; handler: wEventNeatProc): wEventConnection"><wbr />shortcut<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setReturnCode%2CwFrame%2Cint"
title="setReturnCode(self: wFrame; retCode: int)"><wbr />set<wbr />Return<wbr />Code<span class="attachedType"></span></a></li>
<li><a class="reference" href="#getReturnCode%2CwFrame"
title="getReturnCode(self: wFrame): int"><wbr />get<wbr />Return<wbr />Code<span class="attachedType"></span></a></li>
<li><a class="reference" href="#isModal%2CwFrame"
title="isModal(self: wFrame): bool"><wbr />is<wbr />Modal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#showModal%2CwFrame"
title="showModal(self: wFrame): int"><wbr />show<wbr />Modal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#showWindowModal%2CwFrame"
title="showWindowModal(self: wFrame): int"><wbr />show<wbr />Window<wbr />Modal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#endModal%2CwFrame%2Cint"
title="endModal(self: wFrame; retCode: int = 0)"><wbr />end<wbr />Modal<span class="attachedType"></span></a></li>
<li><a class="reference" href="#setTrayIcon%2CwFrame%2CwIcon%2Cstring"
title="setTrayIcon(self: wFrame; icon: wIcon; tooltip = "")"><wbr />set<wbr />Tray<wbr />Icon<span class="attachedType"></span></a></li>
<li><a class="reference" href="#removeTrayIcon%2CwFrame"
title="removeTrayIcon(self: wFrame)"><wbr />remove<wbr />Tray<wbr />Icon<span class="attachedType"></span></a></li>
<li><a class="reference" href="#showBalloon%2CwFrame%2Cstring%2Cstring%2Cint"
title="showBalloon(self: wFrame; title: string; text: string; timeout: int = 3000;
flag = wBallonNone)"><wbr />show<wbr />Balloon<span class="attachedType"></span></a></li>
<li><a class="reference" href="#init%2CwFrame%2CwWindow%2Cstring%2CwStyle%2Cstring"
title="init(self: wFrame; owner: wWindow = nil; title = ""; pos = wDefaultPoint;
size = wDefaultSize; style: wStyle = wDefaultFrameStyle; className = "wFrame")"><wbr />init<span class="attachedType"></span></a></li>
<li><a class="reference" href="#Frame%2CwWindow%2Cstring%2CwStyle%2Cstring"
title="Frame(owner: wWindow = nil; title = ""; pos = wDefaultPoint; size = wDefaultSize;
style: wStyle = wDefaultFrameStyle; className = "wFrame"): wFrame"><wbr />Frame<span class="attachedType"></span></a></li>
</ul>
</li>
<li>
<a class="reference reference-toplevel" href="#14" id="64">Methods</a>
<ul class="simple simple-toc-section">
<li><a class="reference" href="#getDefaultSize.e%2CwFrame"
title="getDefaultSize(self: wFrame): wSize"><wbr />get<wbr />Default<wbr />Size<span class="attachedType"></span></a></li>
<li><a class="reference" href="#release.e%2CwFrame"
title="release(self: wFrame)"><wbr />release<span class="attachedType"></span></a></li>
</ul>
</li>
</ul>
</div>
<div class="nine columns" id="content">
<div id="tocRoot"></div>
<p class="module-desc"><p>A frame is a top-level window in wNim. Since it is a top-level window, it cannot have a parent. However, it can has an owner. The frame will be minimized when its owner is minimized and restored when it is restored.</p>
<p>A dialog is also a top-level window with the owner. So it can be designed in wNim by using a frame with a owner (another main frame), put a panel in it, and then adding some contorls inside.</p>
<p>Notice that if a frame has exactly one child window, not counting the status and toolbar, this child is resized to take the entire frame client area. If two or more windows are present, they should be laid out explicitly by manually. <strong>This behavior just a default wEvent_Size event handler for frame, and it can be overwrited (Since 0.7.0).</strong></p>
<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="wWindow.html">wWindow</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>wIconize</td><td>Display the frame iconized (minimized).</td></tr>
<tr><td>wCaption</td><td>Puts a caption on the frame.</td></tr>
<tr><td>wMinimize</td><td>Identical to wIconize.</td></tr>
<tr><td>wMinimizeBox</td><td>Displays a minimize box on the frame</td></tr>
<tr><td>wMaximize</td><td>Displays the frame maximized</td></tr>
<tr><td>wMaximizeBox</td><td>Displays a maximize box on the frame</td></tr>
<tr><td>wSystemMenu</td><td>Displays a system menu containing the list of various windows commands in the window title bar.</td></tr>
<tr><td>wResizeBorder</td><td>Displays a resizable border around the window.</td></tr>
<tr><td>wStayOnTop</td><td>Stay on top of all other windows.</td></tr>
<tr><td>wModalFrame</td><td>Creates a frame with a modal dialog-box style.</td></tr>
<tr><td>wFrameToolWindow</td><td>Causes a frame with a small title bar to be created; the frame does not appear in the taskbar.</td></tr>
<tr><td>wDefaultFrameStyle</td><td>The default style for a frame.</td></tr>
<tr><td>wDefaultDialogStyle</td><td>The default style for a dialog.</td></tr>
</table></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">Events:</th><td><ul class="simple"><li><a class="reference external" href="wTrayEvent.html">wTrayEvent</a></li>
<li><a class="reference external" href="wCommandEvent.html">wCommandEvent</a> - wEvent_Menu</li>
</ul>
</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="wIconize"></a>
<dt><pre><a href="wFrame.html#wIconize"><span class="Identifier">wIconize</span></a> <span class="Other">=</span> <span class="DecNumber">0x20000000</span></pre></dt>
<a id="wCaption"></a>
<dt><pre><a href="wFrame.html#wCaption"><span class="Identifier">wCaption</span></a> <span class="Other">=</span> <span class="DecNumber">0x00C00000</span></pre></dt>
<a id="wMinimize"></a>
<dt><pre><a href="wFrame.html#wMinimize"><span class="Identifier">wMinimize</span></a> <span class="Other">=</span> <span class="DecNumber">0x20000000</span></pre></dt>
<a id="wMinimizeBox"></a>
<dt><pre><a href="wFrame.html#wMinimizeBox"><span class="Identifier">wMinimizeBox</span></a> <span class="Other">=</span> <span class="DecNumber">0x00020000</span></pre></dt>
<a id="wMaximize"></a>
<dt><pre><a href="wFrame.html#wMaximize"><span class="Identifier">wMaximize</span></a> <span class="Other">=</span> <span class="DecNumber">0x01000000</span></pre></dt>
<a id="wMaximizeBox"></a>
<dt><pre><a href="wFrame.html#wMaximizeBox"><span class="Identifier">wMaximizeBox</span></a> <span class="Other">=</span> <span class="DecNumber">0x00010000</span></pre></dt>
<a id="wSystemMenu"></a>
<dt><pre><a href="wFrame.html#wSystemMenu"><span class="Identifier">wSystemMenu</span></a> <span class="Other">=</span> <span class="DecNumber">0x00080000</span></pre></dt>
<a id="wResizeBorder"></a>
<dt><pre><a href="wFrame.html#wResizeBorder"><span class="Identifier">wResizeBorder</span></a> <span class="Other">=</span> <span class="DecNumber">0x00040000</span></pre></dt>
<a id="wStayOnTop"></a>
<dt><pre><a href="wFrame.html#wStayOnTop"><span class="Identifier">wStayOnTop</span></a> <span class="Other">=</span> <span class="DecNumber">34359738368'i64</span></pre></dt>
<a id="wModalFrame"></a>
<dt><pre><a href="wFrame.html#wModalFrame"><span class="Identifier">wModalFrame</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000080</span></pre></dt>
<a id="wFrameToolWindow"></a>
<dt><pre><a href="wFrame.html#wFrameToolWindow"><span class="Identifier">wFrameToolWindow</span></a> <span class="Other">=</span> <span class="DecNumber">549755813888'i64</span></pre></dt>
<a id="wDefaultFrameStyle"></a>
<dt><pre><a href="wFrame.html#wDefaultFrameStyle"><span class="Identifier">wDefaultFrameStyle</span></a> <span class="Other">=</span> <span class="DecNumber">13565952</span></pre></dt>
<a id="wDefaultDialogStyle"></a>
<dt><pre><a href="wFrame.html#wDefaultDialogStyle"><span class="Identifier">wDefaultDialogStyle</span></a> <span class="Other">=</span> <span class="DecNumber">1103819702272'i64</span></pre></dt>
<a id="wBallonNone"></a>
<dt><pre><a href="wFrame.html#wBallonNone"><span class="Identifier">wBallonNone</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000000</span></pre></dt>
<a id="wBallonInfo"></a>
<dt><pre><a href="wFrame.html#wBallonInfo"><span class="Identifier">wBallonInfo</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000001</span></pre></dt>
<a id="wBallonWarning"></a>
<dt><pre><a href="wFrame.html#wBallonWarning"><span class="Identifier">wBallonWarning</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000002</span></pre></dt>
<a id="wBallonError"></a>
<dt><pre><a href="wFrame.html#wBallonError"><span class="Identifier">wBallonError</span></a> <span class="Other">=</span> <span class="DecNumber">0x00000003</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="getMenuBar,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getMenuBar%2CwFrame"><span class="Identifier">getMenuBar</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wMenuBar"><span class="Identifier">wMenuBar</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>
Returns the menubar currently associated with the frame (if any).
</dd>
<a id="setTopMost,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setTopMost%2CwFrame"><span class="Identifier">setTopMost</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">top</span> <span class="Other">=</span> <span class="Identifier">true</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="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 whether the frame top most to all windows.
</dd>
<a id="setIcon,wFrame,wIcon"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setIcon%2CwFrame%2CwIcon"><span class="Identifier">setIcon</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">icon</span><span class="Other">:</span> <a href="wTypes.html#wIcon"><span class="Identifier">wIcon</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">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 icon for this frame.
</dd>
<a id="getIcon,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getIcon%2CwFrame"><span class="Identifier">getIcon</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wIcon"><span class="Identifier">wIcon</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>
Returns the standard icon.
</dd>
<a id="minimize,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#minimize%2CwFrame"><span class="Identifier">minimize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</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="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>
Minimizes or restores the frame
</dd>
<a id="iconize,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#iconize%2CwFrame"><span class="Identifier">iconize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</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>
Iconizes or restores the frame. The same as minimize().
</dd>
<a id="maximize,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#maximize%2CwFrame"><span class="Identifier">maximize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</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="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>
Maximizes or restores the frame.
</dd>
<a id="restore,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#restore%2CwFrame"><span class="Identifier">restore</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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>
Restore a previously iconized or maximized frame to its normal state.
</dd>
<a id="isIconized,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isIconized%2CwFrame"><span class="Identifier">isIconized</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</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 true if the frame is iconized.
</dd>
<a id="isMaximized,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isMaximized%2CwFrame"><span class="Identifier">isMaximized</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</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 true if the frame is maximized.
</dd>
<a id="enableCloseButton,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enableCloseButton%2CwFrame"><span class="Identifier">enableCloseButton</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</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="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>
Enables or disables the Close button.
</dd>
<a id="disableCloseButton,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#disableCloseButton%2CwFrame"><span class="Identifier">disableCloseButton</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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>
Disables the Close button.
</dd>
<a id="enableMaximizeButton,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enableMaximizeButton%2CwFrame"><span class="Identifier">enableMaximizeButton</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</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="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>
Enables or disables the Maximize button.
</dd>
<a id="disableMaximizeButton,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#disableMaximizeButton%2CwFrame"><span class="Identifier">disableMaximizeButton</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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>
Disables the Maximize button.
</dd>
<a id="enableMinimizeButton,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#enableMinimizeButton%2CwFrame"><span class="Identifier">enableMinimizeButton</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">true</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="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>
Enables or disables the Minimize button.
</dd>
<a id="disableMinimizeButton,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#disableMinimizeButton%2CwFrame"><span class="Identifier">disableMinimizeButton</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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>
Disables the Minimize button.
</dd>
<a id="shortcut,wFrame,int,int,wEventProc"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#shortcut%2CwFrame%2Cint%2Cint%2CwEventProc"><span class="Identifier">shortcut</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">keyCode</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <a href="wTypes.html#wEventProc"><span class="Identifier">wEventProc</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wEventConnection"><span class="Identifier">wEventConnection</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">wNilAccess</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>
Quickly bind a keyboard shortcut to an event handler. If this frame not yet have a accelerator table, it will create a new one. This function use wCommandID between 64257..65535.
</dd>
<a id="shortcut,wFrame,int,int,wEventNeatProc"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#shortcut%2CwFrame%2Cint%2Cint%2CwEventNeatProc"><span class="Identifier">shortcut</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">flag</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">keyCode</span><span class="Other">:</span> <span class="Identifier">int</span><span class="Other">;</span> <span class="Identifier">handler</span><span class="Other">:</span> <a href="wTypes.html#wEventNeatProc"><span class="Identifier">wEventNeatProc</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wEventConnection"><span class="Identifier">wEventConnection</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">wNilAccess</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>
Quickly bind a keyboard shortcut to an event handler. If this frame not yet have a accelerator table, it will create a new one. This function use wCommandID between 64257..65535.
</dd>
<a id="setReturnCode,wFrame,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setReturnCode%2CwFrame%2Cint"><span class="Identifier">setReturnCode</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">retCode</span><span class="Other">:</span> <span class="Identifier">int</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 return code for this window.
</dd>
<a id="getReturnCode,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#getReturnCode%2CwFrame"><span class="Identifier">getReturnCode</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</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 return code for this window.
</dd>
<a id="isModal,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#isModal%2CwFrame"><span class="Identifier">isModal</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">bool</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 true if the frame is modal, false otherwise.
</dd>
<a id="showModal,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#showModal%2CwFrame"><span class="Identifier">showModal</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</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">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 frame as an application-modal dialog. Program flow does not return until the dialog has been dismissed with endModal.
</dd>
<a id="showWindowModal,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#showWindowModal%2CwFrame"><span class="Identifier">showWindowModal</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <span class="Identifier">int</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">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 a dialog modal to the parent top level window only. Program flow does not return until the dialog has been dismissed with endModal.
</dd>
<a id="endModal,wFrame,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#endModal%2CwFrame%2Cint"><span class="Identifier">endModal</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">retCode</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">0</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">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>
Ends a modal dialog, passing a value to be returned from the showModal() invocation.
</dd>
<a id="setTrayIcon,wFrame,wIcon,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#setTrayIcon%2CwFrame%2CwIcon%2Cstring"><span class="Identifier">setTrayIcon</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">icon</span><span class="Other">:</span> <a href="wTypes.html#wIcon"><span class="Identifier">wIcon</span></a><span class="Other">;</span> <span class="Identifier">tooltip</span> <span class="Other">=</span> <span class="StringLit">""</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">wNilAccess</span><span class="Other">,</span> <span class="Identifier">IndexDefect</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>
Creates the system tray icon.
</dd>
<a id="removeTrayIcon,wFrame"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#removeTrayIcon%2CwFrame"><span class="Identifier">removeTrayIcon</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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">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="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Removes the system tray icon.
</dd>
<a id="showBalloon,wFrame,string,string,int"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#showBalloon%2CwFrame%2Cstring%2Cstring%2Cint"><span class="Identifier">showBalloon</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">;</span> <span class="Identifier">title</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">text</span><span class="Other">:</span> <span class="Identifier">string</span><span class="Other">;</span> <span class="Identifier">timeout</span><span class="Other">:</span> <span class="Identifier">int</span> <span class="Other">=</span> <span class="DecNumber">3000</span><span class="Other">;</span>
<span class="Identifier">flag</span> <span class="Other">=</span> <span class="Identifier">wBallonNone</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">IndexDefect</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>
Display a balloon notification. Only works when the frame already have a tray icon. <em>flag</em> is one of wBallonNone, wBallonInfo, wBallonWarning or wBallonError.
</dd>
<a id="init,wFrame,wWindow,string,wStyle,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#init%2CwFrame%2CwWindow%2Cstring%2CwStyle%2Cstring"><span class="Identifier">init</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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">title</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">pos</span> <span class="Other">=</span> <span class="Identifier">wDefaultPoint</span><span class="Other">;</span>
<span class="Identifier">size</span> <span class="Other">=</span> <span class="Identifier">wDefaultSize</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">wDefaultFrameStyle</span><span class="Other">;</span> <span class="Identifier">className</span> <span class="Other">=</span> <span class="StringLit">"wFrame"</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">wBrushError</span><span class="Other">,</span> <span class="Identifier">Exception</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>
Initializes a frame.
</dd>
<a id="Frame,wWindow,string,wStyle,string"></a>
<dt><pre><span class="Keyword">proc</span> <a href="#Frame%2CwWindow%2Cstring%2CwStyle%2Cstring"><span class="Identifier">Frame</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">title</span> <span class="Other">=</span> <span class="StringLit">""</span><span class="Other">;</span> <span class="Identifier">pos</span> <span class="Other">=</span> <span class="Identifier">wDefaultPoint</span><span class="Other">;</span> <span class="Identifier">size</span> <span class="Other">=</span> <span class="Identifier">wDefaultSize</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">wDefaultFrameStyle</span><span class="Other">;</span> <span class="Identifier">className</span> <span class="Other">=</span> <span class="StringLit">"wFrame"</span><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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">wBrushError</span><span class="Other">,</span> <span class="Identifier">Exception</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>
</dl></div>
<div class="section" id="14">
<h1><a class="toc-backref" href="#14">Methods</a></h1>
<dl class="item">
<a id="getDefaultSize.e,wFrame"></a>
<dt><pre><span class="Keyword">method</span> <a href="#getDefaultSize.e%2CwFrame"><span class="Identifier">getDefaultSize</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</span></a><span class="Other">)</span><span class="Other">:</span> <a href="wTypes.html#wSize"><span class="Identifier">wSize</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">locks</span><span class="Other">:</span> <span class="StringLit">"unknown"</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 system suggested size of a window (usually used for GUI controls).
</dd>
<a id="release.e,wFrame"></a>
<dt><pre><span class="Keyword">method</span> <a href="#release.e%2CwFrame"><span class="Identifier">release</span></a><span class="Other">(</span><span class="Identifier">self</span><span class="Other">:</span> <a href="wTypes.html#wFrame"><span class="Identifier">wFrame</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">locks</span><span class="Other">:</span> <span class="StringLit">"unknown"</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="Identifier">RootEffect</span><span class="Other">]</span></span><span class="Other">.}</span></span></pre></dt>
<dd>
Release all the resources during destroying. Used internally.
</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>