Project

General

Profile

$topicbox » History » Version 2

Per Amundsen, 07/28/2018 07:46 AM

1 1 Per Amundsen
_Added in 2.7_
2
3
*$topicbox(window,[N])*
4
5 2 Per Amundsen
Returns the text in the [[Topicbox Control|Topicbox]] of the specified window.
6 1 Per Amundsen
7
*Parameters*
8
9 2 Per Amundsen
window - The window associated with the [[Topicbox Control|Topicbox]] to use.
10 1 Per Amundsen
11
*Properties*
12
13
.selstart - Returns the position of the first selected character.
14
.selend - - Returns the position of the last selected character.
15 2 Per Amundsen
.color - Gets the current [[Topicbox Control|Topicbox]] text color in [[$rgb]] format.
16
.backcolor - Gets the current [[Topicbox Control|Topicbox]] background color in [[$rgb]] format.
17
.rgbcolor - Gets the current [[Topicbox Control|Topicbox]] text color in rrr,ggg,bbb format.
18
.rgbbackcolor - Gets the current [[Topicbox Control|Topicbox]] background color in rrr,ggg,bbb format.
19 1 Per Amundsen
20
*Example*
21
22
<pre>
23
; Print the content of the Topicbox.
24
//echo -ag Text is $topicbox($active) selstart is $topicbox($active).selstart selend is $topicbox($active).selend
25
</pre>