Project

General

Profile

Dialog Items » History » Version 31

Per Amundsen, 07/25/2017 05:51 PM

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