Project

General

Profile

Dialog Items » History » Version 28

Per Amundsen, 03/13/2017 02:49 AM

1 1 Per Amundsen
h1. Dialog Items
2
3 25 Per Amundsen
_See also [[/dialog]], [[$dialog]], [[on DIALOG]]._
4
5 27 Mr. BS
*title <text>*
6 1 Per Amundsen
7
Sets the titlebar text of the dialog.
8
9 7 Per Amundsen
---
10
11 1 Per Amundsen
*size <x y w h>*
12
13
Sets the x/y position and the width/height of the dialog.
14
15 7 Per Amundsen
---
16
17 10 Per Amundsen
*option <pixels | dbu | notheme | disable>*
18 1 Per Amundsen
19
pixels - The dialog and All dialog items sizes are defined in pixels.
20
dbu - The dialog and All dialog items sizes are defined in Dialog Base Units.
21
notheme - Sets the dialog border style to fixed single and disables windows theme styling.
22
disable - Disables all controls for a second when the dialog is shown.
23
24 7 Per Amundsen
---
25
26 8 Per Amundsen
*icon <filename, [index]>*
27
28
Adds a icon to the dialog.
29
30
filename - Icon file, can be any type of picture or icon file, also a .exe or .dll.
31
[index] - Icon index in the .ico/.exe/.dll file to use.
32
33
---
34
35 9 Per Amundsen
*icon <id, x y w h, filename, [index], [noborder, top, left, bottom, right, small, large, actual, disable, hide, tab id, aleft, aright, atop, abottom]>*
36 8 Per Amundsen
37
Adds a picturebox to the dialog.
38
39
id - Id of the picturebox.
40
x y w h - The x y position, width and height to use for the picturebox.
41
filename - Icon file, can be any type of picture or icon file, also a .exe or .dll.
42
[index] - Icon index in the .ico/.exe/.dll file to use.
43
noborder - TODO
44
top - TODO
45
left - TODO
46
bottom - TODO
47
right - TODO
48 28 Per Amundsen
center - TODO
49 26 Per Amundsen
small - Use small icon.
50
large - Use large icon.
51
actual - Use the actual icon.
52 8 Per Amundsen
disable - Disables the picturebox.
53 1 Per Amundsen
hide - Hides the picturebox.
54 9 Per Amundsen
tabid/tab id - Indicates the picturebox should be shown on the tab with the specified id.
55 24 Per Amundsen
aleft - Anchors the picturebox to the left. (AdiIRC only)
56
aright - Anchors the picturebox to the right. (AdiIRC only)
57
atop - Anchors the picturebox to the top. (AdiIRC only)
58
abottom - Anchors the picturebox to the bottom. (AdiIRC only)
59 5 Per Amundsen
60 7 Per Amundsen
---
61
62 6 Per Amundsen
*tab <text, id, x y w h>*
63 1 Per Amundsen
64 6 Per Amundsen
Adds a tabcontrol to the dialog.
65 1 Per Amundsen
66 6 Per Amundsen
text - The text of the tab.
67
id - Id of the tabcontrol.
68
x y w h - The x y position, width and height to use for the tabcontrol.
69
70 7 Per Amundsen
---
71
72 1 Per Amundsen
*tab <text, id*
73
74
Adds a new tab to the tabcontrol with the specified id.
75
76 7 Per Amundsen
---
77
78 3 Per Amundsen
*combo <id, x y w h, [sort, edit, drop, size, vsbar, hsbar, result, disable, tab id, aleft, aright, atop, abottom]>*
79 1 Per Amundsen
80
Adds a combobox to the dialog with the specified id at position x/y and the w/h width/height.
81
82 6 Per Amundsen
id - Id of the combobox.
83
x y w h - The x y position, width and height to use for the combobox.
84 1 Per Amundsen
sort - Enables sorting.
85
edit - Shows the editbox.
86
drop - Show as a dropdown list.
87
size - Sets the height of the dropdown area.
88
vsbar - Enables the vertical scrollbar.
89
hsbar - Enables the horizontal scrollbar.
90 11 Per Amundsen
result -Indicates the selected dropdown item/text should be returned when the dialog "OK/Accept button" is pressed.
91 1 Per Amundsen
disable - Disables the combobox.
92
tabid/tab id - Indicates the combobox should be shown on the tab with the specified id.
93 24 Per Amundsen
aleft - Anchors the combobox to the left. (AdiIRC only)
94
aright - Anchors the combobox to the right. (AdiIRC only)
95
atop - Anchors the combobox to the top. (AdiIRC only)
96
abottom - Anchors the combobox to the bottom. (AdiIRC only)
97 4 Per Amundsen
98 7 Per Amundsen
---
99 1 Per Amundsen
100 11 Per Amundsen
*text <text, id, x y w h, [right, center, nowrap, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
101
102
Adds a text label to the dialog.
103
104
text - The text to add.
105
id - Id of the text.
106
x y w h - The x y position, width and height to use for the text.
107
right - Aligns the text to the right.
108
center - Centers the text.
109
nowrap - TODO
110
result - Indicates the text should be returned when the dialog "OK/Accept button" is pressed.
111
disable - Disables the text.
112 12 Per Amundsen
hide - Hides the text.
113 11 Per Amundsen
tabid/tab id - Indicates the text should be shown on the tab with the specified id.
114 24 Per Amundsen
aleft - Anchors the text to the left. (AdiIRC only)
115
aright - Anchors the text to the right. (AdiIRC only)
116
atop - Anchors the text to the top. (AdiIRC only)
117
abottom - Anchors the text to the bottom. (AdiIRC only)
118 4 Per Amundsen
119 7 Per Amundsen
---
120 1 Per Amundsen
121 12 Per Amundsen
*link <text, id, x y w h, [right, center, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
122
123
Adds a link label to the dialog.
124
125
text - Text of the link.
126
id - Id of the link.
127
x y w h - The x y position, width and height to use for the link.
128
right - Aligns the link to the right.
129
center - Centers the link.
130
result - Indicates the link text should be returned when the dialog "OK/Accept button" is pressed.
131
disable - Disables the link.
132
hide - Hides the link.
133
tabid/tab id - Indicates the link should be shown on the tab with the specified id.
134 24 Per Amundsen
aleft - Anchors the link to the left. (AdiIRC only)
135
aright - Anchors the link to the right. (AdiIRC only)
136
atop - Anchors the link to the top. (AdiIRC only)
137
abottom - Anchors the link to the bottom. (AdiIRC only)
138 4 Per Amundsen
139 7 Per Amundsen
---
140
141 14 Per Amundsen
*button <text, id, x y w h, [default, ok, cancel, flat, multi, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
142 13 Per Amundsen
143
Adds a button to the dialog.
144
145
text - Text of the button.
146
id - Id of the button.
147
x y w h - The x y position, width and height to use for the button.
148
default - Sets the button as the default/accept button of the dialog.
149
ok - Sets the button as the "ok" button of the dialog.
150
cancel - Sets the button as the "cencel" button of the dialog.
151 15 Per Amundsen
flat - Shows the button as a flat button.
152 13 Per Amundsen
multi - TODO
153
result - Indicates the button text should be returned when the dialog "OK/Accept button" is pressed.
154
disable - Disables the button.
155
hide - Hides the button.
156
tabid/tab id - Indicates the button should be shown on the tab with the specified id.
157 24 Per Amundsen
aleft - Anchors the button to the left. (AdiIRC only)
158
aright - Anchors the button to the right. (AdiIRC only)
159
atop - Anchors the button to the top. (AdiIRC only)
160
abottom - Anchors the button to the bottom. (AdiIRC only)
161 4 Per Amundsen
162 7 Per Amundsen
---
163 1 Per Amundsen
164 15 Per Amundsen
*check <text, id, x y w h, [left, push, 3state, flat, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
165
166
Adds a checkbox to the dialog.
167
168
text - Text of the checkbox.
169
id - Id of the checkbox.
170
x y w h - The x y position, width and height to use for the checkbox.
171
left - TODO
172
push - Shows the checkbox as a button.
173
3state - Enables the intermediate state, gives the checkbox 3 states it can be in.
174
flat - Shows the checkbox as a flat checkbox.
175
result - Indicates the checkbox text should be returned when the dialog "OK/Accept button" is pressed.
176
disable - Disables the checkbox.
177
hide - Hides the checkbox.
178
tabid/tab id - Indicates the checkbox should be shown on the tab with the specified id.
179 24 Per Amundsen
aleft - Anchors the checkbox to the left. (AdiIRC only)
180
aright - Anchors the checkbox to the right. (AdiIRC only)
181
atop - Anchors the checkbox to the top. (AdiIRC only)
182
abottom - Anchors the checkbox to the bottom. (AdiIRC only)
183 4 Per Amundsen
184 7 Per Amundsen
---
185
186 16 Per Amundsen
*edit <text, id, x y w h, [right, center, multi, pass, read, return, hsbar, vsbar, autohs, autovs, limit N, rich, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
187
188
Adds a textbox to the dialog.
189
190
text - Text of the textbox.
191
id - Id of the textbox.
192
x y w h - The x y position, width and height to use for the textbox.
193
right - Aligns the text in the textbox to the right.
194
center - Aligns the text in the textbox to the center.
195
multi - Enables multi lines.
196
pass - Indicates the text in the textbox is a password and should be masked.
197
read - Enables read only mode.
198
return - Allow return key to add new lines.
199
hsbar - Enables horizontal scrollbar.
200
vsbar - Enables vertical scrollbar.
201
autohs - Disables word wrap in a multi line textbox .
202
autovs - Automatically scroll to bottom when adding lines in multi line textbox .
203
limit N - Limits the textbox to N characters.
204
rich - Enables richtextbox instead of regular textbox.
205
result - Indicates the textbox text should be returned when the dialog "OK/Accept button" is pressed.
206
disable - Disables the textbox.
207
hide - Hides the textbox.
208
tabid/tab id - Indicates the textbox should be shown on the tab with the specified id.
209 24 Per Amundsen
aleft - Anchors the textbox to the left. (AdiIRC only)
210
aright - Anchors the textbox to the right. (AdiIRC only)
211
atop - Anchors the textbox to the top. (AdiIRC only)
212
abottom - Anchors the textbox to the bottom. (AdiIRC only)
213 4 Per Amundsen
214 7 Per Amundsen
---
215
216 17 Per Amundsen
*list <id, x y w h, [sort, extsel, multse, size, vsbar, hsbar, check, radio, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
217
218
Adds a listbox to the dialog.
219
220
id - Id of the listbox.
221
x y w h - The x y position, width and height to use for the listbox.
222
sort - Enables sorting.
223
extsel - Enabled extended selection mode.
224
multsel - Enabled multi selection mode.
225
size - ?
226
vsbar - Shows the vertical scrollbar always.
227
hsbar - Shows the horizontal scrollbar always.
228
check - Shows checkboxes instead of text.
229
radio - TODO
230
result - Indicates the selected listbox text should be returned when the dialog "OK/Accept button" is pressed.
231
disable - Disables the listbox.
232
hide - Hides the listbox.
233
tabid/tab id - Indicates the listbox should be shown on the tab with the specified id.
234 24 Per Amundsen
aleft - Anchors the listbox to the left. (AdiIRC only)
235
aright - Anchors the listbox to the right. (AdiIRC only)
236
atop - Anchors the listbox to the top. (AdiIRC only)
237
abottom - Anchors the listbox to the bottom. (AdiIRC only)
238 4 Per Amundsen
239 7 Per Amundsen
---
240
241 18 Per Amundsen
*radio <text, id, x y w h, [left, push, flat, group, result, disable, hide, tab id, aleft, aright, atop, abottom]>*
242
243
Adds a radio button to the dialog.
244
245
text - Text of the radio button.
246
id - Id of the radio button.
247
x y w h - The x y position, width and height to use for the radio button.
248
left - TODO
249
push - Shows the radio button as an button.
250
flat - Shows the radio button as flat.
251
group - Creates a new radio group.
252
result - Indicates the radio button text should be returned when the dialog "OK/Accept button" is pressed.
253
disable - Disables the radio button.
254
hide - Hides the radio button.
255
tabid/tab id - Indicates the radio button should be shown on the tab with the specified id.
256 24 Per Amundsen
aleft - Anchors the radio button to the left. (AdiIRC only)
257
aright - Anchors the radio button to the right. (AdiIRC only)
258
atop - Anchors the radio button to the top. (AdiIRC only)
259
abottom - Anchors the radio button to the bottom. (AdiIRC only)
260 4 Per Amundsen
261 7 Per Amundsen
---
262
263 19 Per Amundsen
*box <text, id, x y w h, [result, disable, hide, tab id, aleft, aright, atop, abottom]>*
264
265
Adds a group box.
266
267
text - Text of the group box.
268
id - Id of the group box.
269
x y w h - The x y position, width and height to use for the group box.
270
result - Indicates the selected group box text should be returned when the dialog "OK/Accept button" is pressed.
271
disable - Disables the group box.
272
hide - Hides the group box.
273
tabid/tab id - Indicates the group box should be shown on the tab with the specified id.
274 24 Per Amundsen
aleft - Anchors the group box to the left. (AdiIRC only)
275
aright - Anchors the group box to the right. (AdiIRC only)
276
atop - Anchors the group box to the top. (AdiIRC only)
277
abottom - Anchors the group box to the bottom. (AdiIRC only)
278 4 Per Amundsen
279 7 Per Amundsen
---
280 1 Per Amundsen
281 20 Per Amundsen
*scroll <text, id, x y w h, [top left bottom right horizontal range N N, disable, hide, tab id, aleft, aright, atop, abottom]>*
282
283
Adds a vertical scrollbar.
284
285
text - Text of the scrollbar?.
286
id - Id of the scrollbar.
287
x y w h - The x y position, width and height to use for the scrollbar.
288
top - todo
289
left - TODO
290
bottom - TODO
291
right - TODO
292
horizontal - Sets the scrollbar as a horizontal scrollbar.
293
range N N - Sets the range of the scrollbar, from N to N.
294
disable - Disables the scrollbar.
295
hide - Hides the scrollbar.
296
tabid/tab id - Indicates the scrollbar should be shown on the tab with the specified id.
297 24 Per Amundsen
aleft - Anchors the scrollbar to the left. (AdiIRC only)
298
aright - Anchors the scrollbar to the right. (AdiIRC only)
299
atop - Anchors the scrollbar to the top. (AdiIRC only)
300
abottom - Anchors the scrollbar to the bottom. (AdiIRC only)
301 4 Per Amundsen
302 7 Per Amundsen
---
303
304 21 Per Amundsen
*menu <text, menuid [, menuid]>*
305 1 Per Amundsen
306 21 Per Amundsen
Adds a new menu collection to the Menubar, if the second menuid is specified, the menuitem is added to that menu collection instead.
307
308
text - Text of the menu.
309
menuid - id of the menu.
310
menuid - id of the parent menu.
311
312 1 Per Amundsen
---
313
314 23 Per Amundsen
*item <text|break, id, [menuid, cancel, ok]>*
315 21 Per Amundsen
316
Adds a new menu item to a menu.
317
318
text|break - Text of the menu item, or break to add a menu separator.
319
id - Id of the menu item.
320
menuid - Parent menu to add the menu item to, else it's added to previously used menu.
321
cancel - Indicates this menu should trigger the cancel button.
322
ok - Indicates this menu should trigger the accept/ok button.