PawsScrollBar: Difference between revisions

From PSwiki
Jump to navigation Jump to search
Redhound (talk | contribs)
mNo edit summary
Redhound (talk | contribs)
mNo edit summary
Line 10: Line 10:
</widget>
</widget>


''up'' ::=
''up'' ::=
   <up ''scrollbar-button-settings'' />
   <up ''scrollbar-button-settings'' />


''down'' ::=
''down'' ::=
   <down ''scrollbar-button-settings'' />
   <down ''scrollbar-button-settings'' />


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


''scrollbar-button-settings'' ::=
''scrollbar-button-settings'' ::=
   '''grey''' = ''qname''
   '''grey''' = ''qname''
   '''unpressed''' = ''qname''
   '''unpressed''' = ''qname''

Revision as of 17:01, 9 May 2014

<widget
  name = qname
  factory = "pawsScrollBar"
  direction = { "horizontal" | "vertical" }
  minValue = float
  maxValue = float
  tick = float 
  widget-attributes>

</widget>

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

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