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 7: Line 7:
   '''tick''' = ''float''  
   '''tick''' = ''float''  
   ''widget-attributes''>
   ''widget-attributes''>
   <!-- Content: (up? down? thumb? ''widget-elements'') -->
   &lt;!-- Content: (up? down? thumb? ''widget-elements'') -->
  </widget>
  </widget>


Line 18: Line 18:
  ''thumb'' ::=
  ''thumb'' ::=
   <thumb  
   <thumb  
       '''stopped''' = ''qname'' <!-- "ScrollBar Thumb" -->
       '''stopped''' = ''qname'' &lt;!-- "ScrollBar Thumb" -->
       '''moving''' = ''qname'' /> <!-- "ScrollBar Thumb Moving" -->
       '''moving''' = ''qname'' /> &lt;!-- "ScrollBar Thumb Moving" -->


  ''scrollbar-button-settings'' ::=
  ''scrollbar-button-settings'' ::=

Revision as of 17:04, 9 May 2014

<widget
  name = qname
  factory = "pawsScrollBar"
  direction = { "horizontal" | "vertical" }
  minValue = float
  maxValue = float
  tick = float 
  widget-attributes>
  <!-- Content: (up? down? thumb? widget-elements) -->
</widget>
up ::=
  <up scrollbar-button-settings />
down ::=
  <down scrollbar-button-settings />
thumb ::=
  <thumb 
     stopped = qname <!-- "ScrollBar Thumb" -->
     moving = qname /> <!-- "ScrollBar Thumb Moving" -->
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.