Kodi ——6 Controls (13)6.13 Text Box
2016-06-14 14:59
316 查看
6.13 Text Box
文本框用于显示XBMC多页文字。您可以选择的位置,大小,外观。6.13.1 Example
<control type="textbox" id="2"> <description>My first text box control</description> <left>80</left> <top>60</top> <width>250</width> <height>200</height> <visible>true</visible> <colordiffuse>FFFFFFFF</colordiffuse> <font>font13</font> <textcolor>FFFFFFFF</textcolor> <pulseonselect></pulseonselect> <pagecontrol>13</pagecontrol> <scrolltime>200</scrolltime> <autoscroll delay="3000" time="1000" repeat="10000">!Control.HasFocus(13)</autoscroll> <label>Text to display goes here [CR] next line...</label> <align>center</align> </control>
6.13.2 Available tags
In addition to theDefault Control Tags the following tags are available. Note that each tag is
lower case only. This is important, as xml tags are case-sensitive.
Tag | Description |
---|---|
height | <height>auto</height> is supported in textbox controls |
font | Font used for the items first label. From fonts.xml. |
textcolor | Color used for displaying the text. In AARRGGBB hex format, or a name from the colour theme. |
shadowcolor | Specifies the color of the drop shadow on the text. In AARRGGBB format, or a name from the colour theme. |
pagecontrol | Specifies the <id> of the page control used to control this textbox. The page control can either be a Spin Control or a Scroll Bar Control. |
scrolltime | The time (in ms) to scroll from one item to another. By default, this is 200ms. The list will scroll smoothly from one item to another as needed. Set it to zero to disable the smooth scrolling. |
align | possible values for text alignment: left, right, center, justify |
autoscroll | Specifies the timing and conditions of any autoscrolling this textbox should have. Times are in milliseconds. The content is delayed for the given delay, then scrolls at a rate of one line per time interval until the end. If the repeat tag is present, it then delays for the repeat time, fades out over 1 second, and repeats. It does not wrap or reset to the top at the end of the scroll. You can use any bool condition to specify when autoscrolling should be allowed. |
相关文章推荐
- RxJava操作符(08-条件和布尔操作)
- [转]前后端分离开发模式下后端质量的保证 —— 单元测试
- ES6 - Note3:数组、对象与函数的扩展
- html——图文混排
- msm8974 camera driver添加新摄像头kernel hal修改
- mysql开启远程访问权限及防火墙开放3306端口
- javascript浅谈闭包
- 【HDU】 1852 Beijing 2008
- Mac虚拟机安装win7攻略 必须点赞
- msm8974 camera driver添加新摄像头kernel hal修改
- WPF 之 后台设置Image的Souce
- H265 帧类型判断
- linux screen --解决会话终止当前进程断开的问题!
- python 读取二进制 显示图片
- 浅谈算法和数据结构: 九 平衡查找树之红黑树
- 返回函数的JavaScript函数
- React Native 开发笔记
- jeesite 日志过多
- hadoop实战-01.ubuntu安装jdk
- CANVAS实现图片模糊(处理库StackBlur.js)