@...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
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:
Set / Gets Slider value.
| |
Set / Gets enabled state of a Slider control
| |
Set / Gets visible a Slider control.
| |
Set / Gets row position of a Slider control.
| |
Set / Gets column position of a Slider control.
| |
Set / Gets width of a Slider control.
| |
Set / Gets height of a Slider control.
| |
Set / Gets range max of a Slider control.
| |
Set / Gets range min of a Slider control..
| |
Set / Gets Slider control's Tooltip text
| |
· Cargo
|
Set / Gets user property 'Cargo' for Slider control
|
Retrieves the name of a Slider control.
| |
Set the name as character identifier of the parent window.
| |
Set the numeric help topic identifier of the control.
| |
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:
Action to be performed when generic changing of the control
|
METHODS:
Shows a Slider control
| |
Hides a Slider control
| |
Redraw a Control
| |
Gives the focus to a Slider control
| |
Releases a Slider control from memory
| |
Save a Slider control as BitMap file.
|
EXAMPLE: