Project

General

Profile

Dialog Items » History » Version 33

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