@...SPINNER
DEFINE SPINNER
Create a Spinner control
  

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 <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ HORIZONTAL ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ WRAP ]
[ READONLY ]
[ INCREMENT <
nIncrement> ]
[ CUEBANNER | PLACEHOLDER> <CueText>
[ ON INIT <
bInit> ]

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 <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ ON GOTFOCUS <
OnGotFocusProcedure> | <bBlock> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ]
[ ON LOSTFOCUS <
OnLostFocusProcedure> | <bBlock> ]
[ HELPID <
nHelpId> ]
[ HORIZONTAL < .T. | .F. ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ WRAP < .T. | .F.> ]
[ READONLY < .T. | .F.> ]
[ INCREMENT <
nIncrement> ]
[ CUEBANNER | PLACEHOLDER> <CueText>
[ ONINIT <
bInit> ]

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


DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the Spinner Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the Spinner Control
ParentWindowName
A reference to the Parent Window.
nHelpID
The help topic identifier for this Control
nRangeMin, nRangeMax
Specifies the Min and Max Range for the Spinner control
cFontName
Specifies the Font Name
cFontSize
Specifies the Font Size
cToolTipText
Specifies the Text for the ToolTip
anBackColor
Specifies the Background Color
anFontColor
Specifies the Font Color
OnGotFocusProcedure
An action to be performed when control Got Focused
OnChangeProcedure
An action to be performed when control value changes
OnLostFocusProcedure
An action to be performed when control Lost Focused
nIncrement
Specifies the increment step for the Spinner control
 
 
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
WRAP
?
READONLY
Specifies that we want the control to be in ReadOnly Mode


PROPERTIES:

·   Value
Set / Gets Spinner value.
·   Enabled
Set / Gets enabled state of a Spinner control
·   Visible
Set / Gets visible a Spinner control.
·   Row
Set / Gets row position of a Spinner control.
·   Col
Set / Gets column position of a Spinner control.
·   Width
Set / Gets width of a Spinner control.
·   Height
Set / Gets height of a Spinner control.
·   FontName
Set / Gets Spinner control's font name.
·   FontSize
Set / Gets Spinner control's font size.
·   FontBold
Set / Gets Spinner control's font bold property
·   FontItalic
Set / Gets Spinner control's font italic property
Set / Gets Spinner control's font underline property
Set / Gets Spinner control's font strikeout property
·   FontColor
Set / Gets the foreground color for text within the Spinner
·   BackColor
Set / Gets the background color for text within the Spinner
·   ToolTip
Set / Gets Spinner control's Tooltip text.
·   RangeMax
Set / Gets range max of a Spinner control
·   RangeMin
Set / Gets range min of a Spinner control.
·   Cargo
Set / Gets user property 'Cargo' for Spniner control
·   Name (R)
Retrieves the name of a Spinner 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
Sets / Gets 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
Action to be performed when getting the focus
·   OnChange
Action to be performed when generic changing of the control
Action to be performed when losing the focus.

METHODS:

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

EXAMPLE:

      See demo in :
                    
\Samples\Basic\Spinner


See sample in Chapter:
Spinning Around