@...SPINNER
DEFINE SPINNER 
  

Creates a spinner control.

SYNTAX

Standard Window:

@ <nRow> ,<nCol> SPINNER <ControlName>
[ OF | PARENT <
ParentWindowName> ]
RANGE <
nRangeMin> , <nRangeMax>
[ VALUE <
nValue> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FONT <
cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ WRAP ]
[ READONLY ]
[ INCREMENT <nIncrement> ]

Alternate Syntax:

DEFINE SPINNER <Controlname>

[ ID <nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
RANGEMIN <
nRangeMin>
RANGEMAX <
nRangeMax>
[ VALUE <
nValue> ]
[ WIDTH <
nWidth> ]
[ HEIGHT <
nHeight> ]
[ FONTNAME <
cFontname>
[ FONTSIZE <
nFontsize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
aBackColor> ]
[ FONTCOLOR <
aFontColor> ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ WRAP < .T. | .F.> ]
[ READONLY < .T. | .F.> ]
[ INCREMENT <nIncrement> ]

END SPINNER

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

PROPERTIES:

·   Value
Set / Gets Spiner value.
·   Enabled
Set / Gets enabled state of a Spiner control
·    Visible
Set / Gets visible a Spiner control.
·    Row
Set / Gets row position of a Spiner control.
·    Col
Set / Gets column position of a Spiner control.
·    Width
Set / Gets width of a Spiner control.
·   Height
Set / Gets height of a Spiner control.
·   FontName
Set / Gets Spiner control's font name.
·   FontSize
Set / Gets Spiner control's font size.
·   FontBold
Set / Gets Spiner control's font bold property
·   FontItalic
Set / Gets Spiner control's font italic property
Set / Gets Spiner control's font underline property
Set / Gets Spiner control's font strikeout property
·   FontColor
Set / Gets the foreground color for text within the Spiner
·   BackColor
Set / Gets the background color for text within the Spiner
·   ToolTip
Set / Gets Spiner control's tooltip text.
·   RangeMax
Set / Gets range max of a Spiner control.
·   RangeMin
Set / Gets range min of a Spiner control.
·   Cargo
Set / Gets user property 'Cargo' for Spiner control
·   Name (R)
Retrieves the name of a Spiner control.
·   Parent (D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   Wrap (D)
Set  value to the minimum value when the maximum value is reached (and vice versa)
·   NoTabStop (D)
Sets whether an element behavior can't receive focus and participate in the tabbing sequence
·   ReadOnly (D)
Sets Spinner control's readonly property
·   Increment (D)
Specifies how much the value in the Spinner control increases or decreases

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

EVENTS:

·   OnGotFocus
An action to be performed when getting the focus
·   OnChange
An action to be performed when generic changing of the control
An action to be performed when losing the focus.

METHODS:

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