$editbox » History » Revision 2
Revision 1 (Per Amundsen, 08/12/2015 08:32 AM) → Revision 2/11 (Per Amundsen, 11/24/2016 12:01 PM)
_Added in 1.9.0_
*$editbox(window,[N])*
Returns the text in the Editbox of the specified window.
*Parameters*
window - The window associated with the Editbox to use.
[N] - TODO (optional)
*Properties*
.selstart - Returns the position of the first selected character.
.selend - - Returns the position of the last selected character.
.color - Gets the current Editbox text color in [[$rgb]] format.
.backcolor - Gets the current Editbox background color in [[$rgb]] format.
.rgbcolor - Gets the current Editbox text color in rrr,ggg,bbb format.
.rgbbackcolor - Gets the current Editbox background color in rrr,ggg,bbb format.
*Example*
<pre>
; Open a custom window.
/window -e @Example
; Add 'Hello World' to the Editbox.
/editbox @Example Hello World
; Print the content of the Editbox.
//echo -ag Text is $editbox(@Example) selstart is $editbox(@Example).selstart selend is $editbox(@Example).selend
</pre>