$did » History » Version 8
Per Amundsen, 08/15/2015 06:54 PM
1 | 1 | Per Amundsen | _Added in 1.9.0_ |
---|---|---|---|
2 | |||
3 | 5 | Per Amundsen | *$did* |
4 | |||
5 | 8 | Per Amundsen | Returns the id of the matched dialog id during a [[on DIALOG]] [[Scripting_Events|event]]. |
6 | 5 | Per Amundsen | |
7 | *Example* |
||
8 | |||
9 | <pre> |
||
10 | on *:DIALOG:*:*:{ |
||
11 | echo -ag The matched dialog id is $did |
||
12 | } |
||
13 | </pre> |
||
14 | |||
15 | ----------------------------------------------------------------------------- |
||
16 | |||
17 | 1 | Per Amundsen | *$did([name},id,[N])* |
18 | |||
19 | Returns settings and values from a dialog item. |
||
20 | |||
21 | *Parameters* |
||
22 | |||
23 | [name] - If specified, name of the dialog otherwise [[$dname]] from the current [[Scripting_Events|event]] is used. (optional) |
||
24 | id - Id of the dialog item. |
||
25 | 2 | Per Amundsen | [N] - If N = 0, get number of lines, otherwise the Nth line for a item with multiple lines. (optional) |
26 | 1 | Per Amundsen | |
27 | *Properties* |
||
28 | |||
29 | .text - Returns line or Nth line. |
||
30 | .len - Returns length of line or length of Nth line. |
||
31 | .lines - Returns number of lines. |
||
32 | .sel - If N = 0, returns number of lines otherwise the Nth selected line. |
||
33 | .seltext - Returns selected text in an editbox or first selected item in a listbox. |
||
34 | .selstart - Returns select start character in editbox line. |
||
35 | .selend - Returns select end character in editbox line. |
||
36 | .edited - Returns [[$true]] if text in editbox was changed, otherwise [[$false]]. |
||
37 | .state - Returns 0 = off, 1 = on, and 2 = indeterminate. |
||
38 | .next - Returns id of next control in tab key order. |
||
39 | .prev - Returns id of previous control in tab key order. |
||
40 | 4 | Per Amundsen | .visible - Returns [[$true]] if the control is visible, otherwise [[$false]]. |
41 | 3 | Per Amundsen | .enabled - Returns [[$true]] if the control is enabled, otherwise [[$false]]. |
42 | 1 | Per Amundsen | .isid - Returns [[$true]] if id exists in the dialog, otherwise [[$false]]. |
43 | .csel - If N is 0, returns number of checked lines, otherwise line number of the Nth checked box in a listcb control. |
||
44 | .cstate - Returns 0 = off, 1 = on for item in a listcb control. |
||
45 | |||
46 | |||
47 | |||
48 |