$editbox » History » Version 5
Per Amundsen, 12/06/2017 01:47 AM
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 | 3 | Per Amundsen | .color - Gets the current Editbox text color in [[$rgb]] format. (AdiIRC only) |
17 | .backcolor - Gets the current Editbox background color in [[$rgb]] format. (AdiIRC only) |
||
18 | .rgbcolor - Gets the current Editbox text color in rrr,ggg,bbb format. (AdiIRC only) |
||
19 | .rgbbackcolor - Gets the current Editbox background color in rrr,ggg,bbb format. (AdiIRC only) |
||
20 | 4 | Per Amundsen | .spellcheckword - Gets the current word at the cursor position formatted for spellchecking. (AdiIRC only) |
21 | 5 | Per Amundsen | .currline - Returns the line where the cursor is in a multiline Editbox. (AdiIRC only) |
22 | .lines - Returns the number of lines in a multiline Editbox. (AdiIRC only) |
||
23 | 1 | Per Amundsen | |
24 | *Example* |
||
25 | |||
26 | <pre> |
||
27 | ; Open a custom window. |
||
28 | /window -e @Example |
||
29 | |||
30 | ; Add 'Hello World' to the Editbox. |
||
31 | /editbox @Example Hello World |
||
32 | |||
33 | ; Print the content of the Editbox. |
||
34 | //echo -ag Text is $editbox(@Example) selstart is $editbox(@Example).selstart selend is $editbox(@Example).selend |
||
35 | </pre> |