Project

General

Profile

$topicbox » History » Revision 2

Revision 1 (Per Amundsen, 11/24/2016 03:56 PM) → Revision 2/3 (Per Amundsen, 07/28/2018 07:46 AM)

_Added in 2.7_ 

 *$topicbox(window,[N])* 

 Returns the text in the [[Topicbox Control|Topicbox]] Topicbox of the specified window. 

 *Parameters* 

 window - The window associated with the [[Topicbox Control|Topicbox]] Topicbox to use. 

 *Properties* 

 .selstart - Returns the position of the first selected character. 
 .selend - - Returns the position of the last selected character. 
 .color - Gets the current [[Topicbox Control|Topicbox]] Topicbox text color in [[$rgb]] format. 
 .backcolor - Gets the current [[Topicbox Control|Topicbox]] Topicbox background color in [[$rgb]] format. 
 .rgbcolor - Gets the current [[Topicbox Control|Topicbox]] Topicbox text color in rrr,ggg,bbb format. 
 .rgbbackcolor - Gets the current [[Topicbox Control|Topicbox]] Topicbox background color in rrr,ggg,bbb format. 

 *Example* 

 <pre> 
 ; Print the content of the Topicbox. 
 //echo -ag Text is $topicbox($active) selstart is $topicbox($active).selstart selend is $topicbox($active).selend 
 </pre>