Kodi ——6 Controls (13)6.13 Text Box

来源:互联网 发布:uml对象设计与编程 编辑:程序博客网 时间:2024/04/27 18:59

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 the Default Control Tags the following tags are available. Note that each tag is lower case only. This is important, as xml tags are case-sensitive.

TagDescriptionheight<height>auto</height> is supported in textbox controlsfontFont used for the items first label. From fonts.xml.textcolorColor used for displaying the text. In AARRGGBB hex format, or a name from thecolour theme.shadowcolorSpecifies the color of the drop shadow on the text. In AARRGGBB format, or a name from thecolour theme.pagecontrolSpecifies the <id> of the page control used to control this textbox. The page control can either be aSpin Control or a Scroll Bar Control.scrolltimeThe 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.alignpossible values for text alignment: left, right, center, justifyautoscrollSpecifies 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 anybool condition to specify when autoscrolling should be allowed.



0 0
原创粉丝点击