Project

General

Profile

$did » History » Version 9

Per Amundsen, 02/01/2017 02:09 AM

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 9 Per Amundsen
_See also [[/dialog]], [[on DIALOG]], [[Dialog Items]]._
22
23 1 Per Amundsen
*Parameters*
24
25
[name] - If specified, name of the dialog otherwise [[$dname]] from the current [[Scripting_Events|event]] is used. (optional)
26
id - Id of the dialog item.
27 2 Per Amundsen
[N] - If N = 0, get number of lines, otherwise the Nth line for a item with multiple lines. (optional)
28 1 Per Amundsen
29
*Properties*
30
31
.text - Returns line or Nth line.
32
.len - Returns length of line or length of Nth line.
33
.lines - Returns number of lines.
34
.sel - If N = 0, returns number of lines otherwise the Nth selected line.
35
.seltext - Returns selected text in an editbox or first selected item in a listbox.
36
.selstart - Returns select start character in editbox line.
37
.selend - Returns select end character in editbox line.
38
.edited - Returns [[$true]] if text in editbox was changed, otherwise [[$false]].
39
.state - Returns 0 = off, 1 = on, and 2 = indeterminate.
40
.next - Returns id of next control in tab key order.
41
.prev - Returns id of previous control in tab key order.
42 4 Per Amundsen
.visible - Returns [[$true]] if the control is visible, otherwise [[$false]].
43 3 Per Amundsen
.enabled - Returns [[$true]] if the control is enabled, otherwise [[$false]].
44 1 Per Amundsen
.isid - Returns [[$true]] if id exists in the dialog, otherwise [[$false]].
45
.csel - If N is 0, returns number of checked lines, otherwise line number of the Nth checked box in a listcb control.
46
.cstate - Returns 0 = off, 1 = on for item in a listcb control.
47
48
49
50