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