XIML – functionality – scroll

Following elements can have scroll: text, sel_4state, elem_group.
To use it, specify attribute scrl=”yes” in the element.
Then you can use default scroll or fully configure it for your needs.
The default scroll is:


<scroll>
  <conf  scroll_step="50" scroll_step_time="0.3"/> 

  <bg eltype="elem_group"  x="R+3" y="12"  w="7" y2="B-12" >
    <el eltype="bord"  x="0" y="0"  x2="R" y2="B"  c="0xcccccc" a="100" r="0"  t="0.5" />
  </bg> 

  <sld  eltype="el__2state"  x="R+3" y="12"  w="7" y2="B-12" >
    <el>
      <el eltype="rect"  x="0" y="0"  x2="R" y2="B"  c="0x999999" a="100" r="0"  />
    </el>
    <elov>
      <el eltype="rect"  x="0" y="0"  x2="R" y2="B"  c="0x333333" a="100" r="0"  />
    </elov>
  </sld> 

  <bar eltype="elem_group"  x="R+3" y="12"  w="7" y2="B-12" >
    <el eltype="rect"  x="0" y="0"  x2="R" y2="B"  c="0x3333cc" a="0" r="0"  />
  </bar> 

  <btn_up eltype="el__2state"  x="R+3" y="0"  w="7" h="10" >
    <el>
      <el eltype="rect"  x="-2" y="-2"  x2="R+2" y2="B+2"  c="0xcccccc" a="0" r="0" />
      <el eltype="triang"  x1="0" y1="B"  x2="R" y2="B"  x3="C" y3="0"    c="0x999999" a="100" />
    </el>
    <elov>
      <el eltype="rect"  x="-2" y="-2"  x2="R+2" y2="B+2"  c="0xcccccc" a="0" r="0" />
      <el eltype="triang"  x1="0" y1="B"  x2="R" y2="B"  x3="C" y3="0"    c="0x333333" a="100" />
    </elov>
  </btn_up> 

  <btn_down eltype="el__2state" x="R+3" y="B-10" w="7" h="10">
    <el>
      <el eltype="rect"  x="-2" y="-2"  x2="R+2" y2="B+2"  c="0xcccccc" a="0" r="0" />
      <el eltype="triang"  x1="0" y1="0"  x2="R" y2="0"  x3="C" y3="B"    c="0x999999" a="100" />
    </el>
    <elov>
      <el eltype="rect"  x="-2" y="-2"  x2="R+2" y2="B+2"  c="0xcccccc" a="0" r="0" />
      <el eltype="triang"  x1="0" y1="0"  x2="R" y2="0"  x3="C" y3="B"    c="0x333333" a="100" />
    </elov>
  </btn_down>
</scroll>

<conf – scroll configuration (optional). By default, scroll_step is 50 (pixels) for sel_4state, elem_group and 3 (lines) for text. scroll_step_time is 0.3 sec by default.

<bg – graphics, background, etc.

<sld – slider. It will be resized to a required height.

<bar – specifies “operational” area for slider movement.

<btn_up – button for scroll up.

<btn_down – button for scroll down.

keep the link / tell a friend
  • Google
  • del.icio.us
  • Digg
  • Reddit
  • Slashdot
  • StumbleUpon
  • Technorati

Leave a Reply