$topicbox » History » Version 3
Per Amundsen, 02/23/2023 07:52 PM
| 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 | 3 | Per Amundsen | table(ktable). |
| 10 | |*Parameter*|*Description*| |
||
| 11 | | window | The window associated with the [[Topicbox Control<notextile>|</notextile>Topicbox]] to use. | |
||
| 12 | 1 | Per Amundsen | |
| 13 | *Properties* |
||
| 14 | |||
| 15 | 3 | Per Amundsen | table(ktable). |
| 16 | |*Property*|*Description*| |
||
| 17 | | .selstart | Returns the position of the first selected character. | |
||
| 18 | | .selend | - Returns the position of the last selected character. | |
||
| 19 | | .color | Gets the current [[Topicbox Control<notextile>|</notextile>Topicbox]] text color in [[$rgb]] format. | |
||
| 20 | | .backcolor | Gets the current [[Topicbox Control<notextile>|</notextile>Topicbox]] background color in [[$rgb]] format. | |
||
| 21 | | .rgbcolor | Gets the current [[Topicbox Control<notextile>|</notextile>Topicbox]] text color in rrr,ggg,bbb format. | |
||
| 22 | | .rgbbackcolor | Gets the current [[Topicbox Control<notextile>|</notextile>Topicbox]] background color in rrr,ggg,bbb format. | |
||
| 23 | 1 | Per Amundsen | |
| 24 | *Example* |
||
| 25 | |||
| 26 | <pre> |
||
| 27 | ; Print the content of the Topicbox. |
||
| 28 | //echo -ag Text is $topicbox($active) selstart is $topicbox($active).selstart selend is $topicbox($active).selend |
||
| 29 | </pre> |