Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Used to show a multi-page piece of text. More...
Classes | |
class | XBMCAddon::xbmcgui::ControlTextBox |
Functions | |
XBMCAddon::xbmcgui::ControlTextBox::setText (...) | |
| |
XBMCAddon::xbmcgui::ControlTextBox::getText () | |
| |
XBMCAddon::xbmcgui::ControlTextBox::reset () | |
| |
XBMCAddon::xbmcgui::ControlTextBox::scroll (...) | |
| |
XBMCAddon::xbmcgui::ControlTextBox::autoScroll (...) | |
| |
Used to show a multi-page piece of text.
Class: ControlTextBox(x, y, width, height[, font, textColor])
The text box is used for showing a large multipage piece of text in Kodi. You can choose the position, size, and look of the text.
x | integer - x coordinate of control. |
y | integer - y coordinate of control. |
width | integer - width of control. |
height | integer - height of control. |
font | [opt] string - font used for text. (e.g. 'font13') |
textColor | [opt] hexstring - color of textbox's text. (e.g. '0xFFFFFFFF') |
Example:
As stated above, the GUI control is only created once added to a window. The example below shows how a ControlTextBox can be created, added to the current window and have some of its properties changed.
Extended example:
void XBMCAddon::xbmcgui::ControlTextBox::autoScroll | ( | ... | ) |
Function: autoScroll(delay, time, repeat)
delay | integer - Scroll delay (in ms) |
time | integer - Scroll time (in ms) |
repeat | integer - Repeat time |
Example:
String XBMCAddon::xbmcgui::ControlTextBox::getText | ( | ) |
Function: getText()
Example:
void XBMCAddon::xbmcgui::ControlTextBox::reset | ( | ) |
Function: reset()
Example:
void XBMCAddon::xbmcgui::ControlTextBox::scroll | ( | ... | ) |
Function: scroll(id)
id | integer - position to scroll to. |
Example:
void XBMCAddon::xbmcgui::ControlTextBox::setText | ( | ... | ) |
Function: setText(text)
text | string - text string. |
Example: