XUL Programmer's Reference Manual

<scrollbarbutton>

Attributes Common Children
id  * * *
class  
type  
align  
crop  
src  
orient  
autostretch  

The scrollbarbutton is the button widget inside the scrollbar. It inherits from titledbutton and has some additional behavior of its own. The class of the button determines what kind of button it is. Increment is a class for XXX. The following example shows a scrollbarbutton defined within a scrollbar subtree:

 
<scrollbar align="vertical" 
    curpos="50" 
    pageIncrement="20" 
    increment="5" 
flex="100%">
  <scrollbarbutton type="decrement"/>
  <slider flex="100%">
     <thumb value="Thumb" flex="0%"/>
  </slider>
  <scrollbarbutton type="increment"/>
</scrollbar>

 

 

type
Description
The type attribute specifies the orientation of the scrollbarbutton on the scrollbar.
Syntax 
<scrollbarbutton type="decrement | increment" />
Example
<scrollbarbutton type="decrement" />
Notes
"Decrement" scrollbarbuttons have arrows pointing up because they scroll backwards up the page. "Increment" types have down arrows. The example above shows a decrement scrollbarbutton, then a slider with a thumb child, then an increment scrollbarbutton.
 

Last updated: 2/17/00 Ian Oeschger