TrackBarGadget()

Syntax

TrackBarGadget(#Gadget, x, y, Width, Height, Minimum, Maximum [, Flags])

Description

Creates a TrackBar gadget in the current GadgetList. It allows to select a range of values with a slide bar, like one found in several multimedia players. The Minimum-Maximum range should be between 0 and 10 000. #Gadget will be the numeric identifiant returned by EventGadgetID() command. The following commands can be used to act on this gadget:

- GetGadgetState(): Returns the current cursor position (value between the Minimum-Maximum range)
- SetGadgetState(): Change the current cursor position.

'Flags' are optionnals and can be composed of one of the following constants:
  #PB_TrackBar_Ticks    : Display a 'tick' marquer at each step. 
  #PB_TrackBar_Vertical : The trackbar is now vertical. 

Supported OS

Windows

Gadget - Index