Project

General

Profile

$did » History » Version 2

Per Amundsen, 08/12/2015 07:10 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$did([name},id,[N])*
4
5
Returns settings and values from a dialog item.
6
7
*Parameters*
8
9
[name] - If specified, name of the dialog otherwise [[$dname]] from the current [[Scripting_Events|event]] is used. (optional)
10
id - Id of the dialog item.
11 2 Per Amundsen
[N] - If N = 0, get number of lines, otherwise the Nth line for a item with multiple lines. (optional)
12 1 Per Amundsen
13
*Properties*
14
15
.text - Returns line or Nth line.
16
.len - Returns length of line or length of Nth line.
17
.lines - Returns number of lines.
18
.sel - If N = 0, returns number of lines otherwise the Nth selected line.
19
.seltext - Returns selected text in an editbox or first selected item in a listbox.
20
.selstart - Returns select start character in editbox line.
21
.selend - Returns select end character in editbox line.
22
.edited - Returns [[$true]] if text in editbox was changed, otherwise [[$false]].
23
.state - Returns 0 = off, 1 = on, and 2 = indeterminate.
24
.next - Returns id of next control in tab key order.
25
.prev - Returns id of previous control in tab key order.
26
.visible - Returns [[$true]] if the control is visible, otherwise [[$false}}.
27
.enabled - Returns [[$true]] if the control is enabled, otherwise ]]$false]].
28
.isid - Returns [[$true]] if id exists in the dialog, otherwise [[$false]].
29
.csel - If N is 0, returns number of checked lines, otherwise line number of the Nth checked box in a listcb control.
30
.cstate - Returns 0 = off, 1 = on for item in a listcb control.
31
32
33
34