Scroll Bar Control

From DevWiki

Jump to: navigation, search

Applications,Boxee GUI API,Controls

Contents


Overview

Scroll bar controls are used to control the paging of container controls, textbox controls and grouplist controls. Scroll bar properties include position, size and look.


Example

  1. <control type="scrollbar" id="101">
  2.    <description>scroll bar indicator for lists</description>
  3.    <posx>956</posx>
  4.    <posy>70</posy>
  5.    <width>16</width>
  6.    <height>580</height>
  7.    <texturesliderbarfocus border="8">scrollbar_nib.png</texturesliderbarfocus-->
  8.    <textureslidernib>scrollbar_nib.png</textureslidernib>
  9.    <textureslidernibfocus>scrollbar_nib.png</textureslidernibfocus>
  10.    <texturesliderbackground>scrollbar.png</texturesliderbackground>
  11.    <orientation>vertical</orientation>
  12.    <showonepage>true</showonepage>
  13. </control>


Available Tags

In addition to the Default Control Properties the following tags are available. Note that all XML tags are in lower case.

Element Description Required
texturesliderbackground Specifies the image file which should be displayed in the background of the scroll bar control. No
texturesliderbar Specifies the image file which should be displayed for the scroll bar. As the size of the scroll bar is dynamic, it is often useful to use the border attribute of this texture. No
texturesliderbarfocus Specifies the image file which should be displayed for the scroll bar when it has focus. No
textureslidernib Specifies the image file which should be displayed for the scroll bar nib. The nib is always centered within the scroll bar. No
textureslidernibfocus Specifies the image file which should be displayed for the scroll bar nib when it has focus. The nib is always centered within the scroll bar. No
orientation Specifies whether this scrollbar is horizontal or vertical. Defaults to vertical. No
showonepage Specifies whether the scrollbar will show if the container it’s controlling has just one page. Defaults to true. No
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox