Project

General

Profile

Dialog Items » History » Version 26

Per Amundsen, 02/20/2017 06:03 PM

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