Project

General

Profile

$editbox » History » Version 2

Per Amundsen, 11/24/2016 12:01 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$editbox(window,[N])*
4
5
Returns the text in the Editbox of the specified window.
6
7
*Parameters*
8
9
window - The window associated with the Editbox to use.
10
[N] - TODO (optional)
11
12
*Properties*
13
14
.selstart - Returns the position of the first selected character.
15
.selend - - Returns the position of the last selected character.
16 2 Per Amundsen
.color - Gets the current Editbox text color in [[$rgb]] format.
17
.backcolor - Gets the current Editbox background color in [[$rgb]] format.
18
.rgbcolor - Gets the current Editbox text color in rrr,ggg,bbb format.
19
.rgbbackcolor - Gets the current Editbox background color in rrr,ggg,bbb format.
20 1 Per Amundsen
21
*Example*
22
23
<pre>
24
; Open a custom window.
25
/window -e @Example
26
27
; Add 'Hello World' to the Editbox.
28
/editbox @Example Hello World
29
30
; Print the content of the Editbox.
31
//echo -ag Text is $editbox(@Example) selstart is $editbox(@Example).selstart selend is $editbox(@Example).selend
32
</pre>