@...SLIDER
DEFINE SLIDER 
Create a Slider control
  

Creates a slider control.

SYNTAX

Standard Window:

@ <nRow> ,<nCol> SLIDER <ControlName>
[ ID <
nId> ]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
RANGE <
nRangeMin> , <nRangeMax>
[ SELRANGE <
nSelRangeMin>,<nSelRangeMax> ]
[ VALUE <
nValue> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ BACKCOLOR <
anBackColor> ]
[ TOOLTIP <
cToolTipText> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SCROLL <
OnScrollProcedure> ]
[ VERTICAL ]
[ NOTICKS ]

[ ENABLESELRANGE> ]

[ BOTH ]
[ TOP ]
[ LEFT ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]

[ ON INIT <
bInit> ]

Dialog Window:

REDEFINE SLIDER <ControlName>
ID <
nId>
[ OF | PARENT | DIALOG <
ParentWindowName> ]
RANGE <
nRangeMin> , <nRangeMax>
[ SELRANGE <
nSelRangeMin>,<nSelRangeMax> ]
[ VALUE <
nValue> ]
[ BACKCOLOR <
anBackColor> ]
[ TOOLTIP <
cToolTipText> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON SCROLL <
OnScrollProcedure> ]
[ VERTICAL ]
[ NOTICKS ]
[ ENABLESELRANGE> ]
[ BOTH ]
[ TOP ]
[ LEFT ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]

[ ON INIT <
bInit> ]


Alternate Syntax:

DEFINE SLIDER <ControlName>

[ ID <nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
RANGEMIN <
nRangeMin>
RANGEMAX
<nRangeMax>
[ SELRANGEMIN <
nSelRangeMin>
[ SELRANGEMAX <nSelRangeMax>
[ VALUE <
nValue> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ BACKCOLOR <
anBackColor> ]
[ TOOLTIP <
cToolTipText> ]
[ ONCHANGE <
OnChangeProcedure> | <bBlock> ]
[ ONSCROLL <
OnScrollProcedure> ]
[ VERTICAL < .T. | .F.> ]
[ NOTICKS < .T. | .F.> ]
[
ENABLESELRANGE < .T. | .F.> ]
[ BOTH < .T. | .F.> ]
[ TOP < .T. | .F.> ]
[ LEFT < .T. | .F.> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]

[ ONINIT <
bInit> ]

END SLIDER

Remarks

The minimum value in the range can be from 0 to 65,535. Likewise, the maximum value can be from 0 to 65,535


DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the Slider Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the Slider Control
ParentWindowName
A reference to the Parent Window.
nHelpID
The help topic identifier for this Control
nValue
Specifies the starting value of the Slider control
nRangeMin, nRangeMax
Specifies the Min and Max Range for the Slider control
anBackColor
Specifies the Background Color
cToolTipText
Specifies the Text for the ToolTip
OnChangeProcedure
An action to be performed when the control value Changes
OnScrollProcedure
An action to be performed when scrolling the control
 
 
VERTICAL
Specifies that we want the Slider to be Vertical
NOTICKS
Specifies to show no Tick
BOTH
?
TOP
?
LEFT
?
INVISIBLE
The visibility property specifies whether or not a control is visible
NOTABSTOP
Stop the control to receive focus and participate in the tabbing sequence


PROPERTIES:

·   Value
Set / Gets Slider value.
·   Enabled
Set / Gets enabled state of a Slider control
·   Visible
Set / Gets visible a Slider control.
·   Row
Set / Gets row position of a Slider control.
·   Col
Set / Gets column position of a Slider control.
·   Width
Set / Gets width of a Slider control.
·   Height
Set / Gets height of a Slider control.
·   RangeMax
Set / Gets range max of a Slider control.
·   RangeMin
Set / Gets range min of a Slider control..
·   ToolTip
Set / Gets Slider control's Tooltip text
·   Cargo
Set / Gets user property 'Cargo' for Slider control
·   Name (R)
Retrieves the name of a Slider control.
·   Parent(D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   Vertical(D)
Sets the value to create Vertical Slider.
·   NoTicks (D)
Sets the positions of the tick marks to display for a Slider control
·   Both (D)
Sets the  tick marks on both sides of a Slider control
·   Top (D)
Sets the tick marks above a Horizontal Slider control
·   Left (D)
Sets the tick marks to the left of Vertical Slider control

D: Available at control definition only
R: Read-Only

EVENTS:

·   OnChange
Action to be performed when generic changing of the control

METHODS:

·   Show
Shows a Slider control
·   Hide
Hides a Slider control
·   Redraw
Redraw a Control
·   SetFocus
Gives the focus to a Slider control
·   Release
Releases a Slider control from memory
·   SaveAs
Save a Slider control as BitMap file.


EXAMPLE:

See demo in :
       
\Samples\Basic\Slider
        \Samples\Basic\Color