PawsScrollBar

From PSwiki
Jump to navigation Jump to search
<widget
  name = qname
  factory = "pawsScrollBar"
  direction = { "horizontal" | "vertical" }
  minValue = float
  maxValue = float
  tick = float 
  widget-attributes>
  <!-- Content: (up?, down?, thumb?, widget-elements) -->
</widget>

Optional up and down sections describe scrollbar buttons.

up ::=
  <up scrollbar-button-settings />
down ::=
  <down scrollbar-button-settings />
scrollbar-button-settings ::=
  grey = qname
  unpressed = qname
  pressed = qname
  offsetx = int
  offsety = int
  width = int
  height = int

Optional thumb section describe scrollbar thumb / grip button styles.

thumb ::=
  <thumb 
     stopped = qname <!-- "ScrollBar Thumb" -->
     moving = qname /> <!-- "ScrollBar Thumb Moving" -->

The pawsScrollBar factory is used to create a horizontal of vertical scrollbar. This is part of the common PAWS library.