@...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
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:
Set / Gets Spinner value.
| |
Set / Gets enabled state of a Spinner control
| |
Set / Gets visible a Spinner control.
| |
Set / Gets row position of a Spinner control.
| |
Set / Gets column position of a Spinner control.
| |
Set / Gets width of a Spinner control.
| |
Set / Gets height of a Spinner control.
| |
Set / Gets Spinner control's font name.
| |
Set / Gets Spinner control's font size.
| |
Set / Gets Spinner control's font bold property
| |
Set / Gets Spinner control's font italic property
| |
Set / Gets Spinner control's font underline property
| |
Set / Gets Spinner control's font strikeout property
| |
Set / Gets the foreground color for text within the Spinner
| |
Set / Gets the background color for text within the Spinner
| |
Set / Gets Spinner control's Tooltip text.
| |
Set / Gets range max of a Spinner control
| |
Set / Gets range min of a Spinner control.
| |
Set / Gets user property 'Cargo' for Spniner control
| |
Retrieves the name of a Spinner control.
| |
Set the name as character identifier of the parent window.
| |
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
|
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:
Action to be performed when getting the focus
| |
Action to be performed when generic changing of the control
| |
Action to be performed when losing the focus.
|
METHODS:
Shows a Spinner control
| |
Hides a Spinner control
| |
Redraw a Control
| |
Gives the focus to a Spinner control
| |
Releases a Spinner control from memory
| |
Save a Spinner control as BitMap file.
|
EXAMPLE:
See
demo in :
\Samples\Basic\Spinner