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