@...RADIOGROUP
DEFINE RADIOGROUP
Create a RadioGroup control
  

Creates a radiogroup control.

SYNTAX

Standard Window:

@ <nRow> ,<nCol> RADIOGROUP <ControlName>
[ ID <
aId> ]
[ OF | PARENT | DIALOG <
ParentWindowName> ]
OPTIONS <
acOptions>
[ VALUE <
nValue> ]
[ WIDTH <
nWidth> ]
[ SPACING <
nSpacing> ]
[ AUTOSIZE ]
[ FONT <
cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ] 
[ ON INIT <
bInit> ]
[ TRANSPARENT ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ READONLY <
aReadOnly> ]
[ HORIZONTAL ]
[ LEFTJUSTIFY ]

Dialog Window:

REDEFINE RADIOGROUP <ControlName>
ID <
aId>
[ OF | PARENT | DIALOG <
ParentWindowName> ]
OPTIONS <
acOptions>
[ VALUE <
nValue> ]
[ SPACING <
nSpacing> ]
[ AUTOSIZE ]
[ FONT <
cFontName> SIZE <nFontSize> ]
[ BOLD ] [ ITALIC ] [ UNDERLINE ] [ STRIKEOUT ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ ON CHANGE <
OnChangeProcedure> | <bBlock> ] 
[ ON INIT <
bInit> ]
[ TRANSPARENT ]
[ HELPID <
nHelpId> ]
[ INVISIBLE ]
[ NOTABSTOP ]
[ READONLY <
aReadOnly> ]
[ HORIZONTAL ]
[ LEFTJUSTIFY ]

Alternate Syntax:

DEFINE RADIOGROUP <Controlname>

[ ID <nId> ]
[ PARENT <
ParentWindowName> ]
COL <
nCol>
ROW <
nRow>
OPTIONS <
acOptions>
[ VALUE <
nValue> ]
[ WIDTH <
nWidth> ]
[ SPACING <
nSpacing> ]
[ FONTNAME <
cFontName> ]
[ AUTOSIZE < .T. | .F.> ]
[ FONTSIZE <
nFontSize> ]
[ FONTBOLD < .T. | .F.> ]
[ FONTITALIC < .T. | .F.> ]
[ FONTUNDERLINE < .T. | .F.> ]
[ FONTSTRIKEOUT < .T. | .F.> ]
[ TOOLTIP <
cToolTipText> ]
[ BACKCOLOR <
anBackColor> ]
[ FONTCOLOR <
anFontColor> ]
[ ONCHANGE <
OnChangeProcedure> | <bBlock> ]
[ TRANSPARENT < .T. | .F.> ]
[ HELPID <
nHelpId> ]
[ INVISIBLE < .T. | .F.> ]
[ NOTABSTOP < .T. | .F.> ]
[ READONLY <
aReadOnly> ]
[ HORIZONTAL < .T. | .F.> ]
[ LEFTJUSTIFY < .T. | .F.> ]

[ ONINIT <
bInit> ]

END RADIOGROUP


DESCRIPTION:
nRow, nCol
Position in the area of ??the window in pixels.
nWidth, nHeight
The desired size of the RadioGroup Control in pixels.
nId
The ID identifier this Control in Dialog Window
ControlName
A reference to the RadioGroup Control
ParentWindowName
A reference to the Parent Window.
nHelpID
The help topic identifier for this Control
acOptions
Specifies a List of Options for the RadioGroup
nValue
Specifies the startup value of the RadioGroup
nSpacing
Specifies the Spacing between the RadioGroup
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
OnChangeProcedure
An action to be performed when control value is Changed
aReadOnly
Specified that the control is in Readonly mode
 
 
TRANSPARENT
Specifies that the background of a control should be transparent
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
HORIZONTAL
Specifies to display the options in a horizontal way
LEFTJUSTIFY
 


PROPERTIES:

·   Value
Set / Gets RadioGroup value.
·   Enabled(nItemNumber)
Set / Gets enabled state of a RadioGroup control
·   Visible
Set / Gets visible a RadioGroup control.
·   Row
Set / Gets row position of a RadioGroup control.
·   Col
Set / Gets column position of a RadioGroup control.
·   Width
Set / Gets width of a RadioGroup control.
·   Caption (nItemNumber)
Set / Gets caption of RadioGroup control
·   FontName
Set / Gets RadioGroup control's font name.
·   FontSize
Set / Gets RadioGroup control's font size.
·   FontBold
Set / Gets RadioGroup control's font bold property
·   FontItalic
Set / Gets RadioGroup control's font italic property
Set / Gets RadioGroup control's font underline property
Set / Gets RadioGroup control's font strikeout property
·   FontColor
Set / Gets the foreground color for text within the Label
·   BackColor
Set / Gets the background color for text within the Label
Set / Gets t the background of a control transparent
·   Cargo
Set / Gets user property 'Cargo' for RadioGroup control
·   Name (R)
Retrieves the name of a RadioGroup control.
·   Options
Set / Gets options of RadioGroup control
·   ReadOnly
Set / Gets RadioGroup control's readonly property
·   Parent(D)
Set the name as character identifier of the parent window.
·   HelpId (D)
Set the numeric help topic identifier of the control.
·   Spacing
Set / Gets space between RadioGroup items (For horizontal orientation)
·   Blink(D)
Set Blink attribute to control text
·   NoTabStop(D)
Sets whether an element behavior can receive focus and participate in the tabbing sequence

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 RadioGroup control
·   Hide
Hides a RadioGroup control
·   Redraw
Redraw a Control
·   SetFocus
Gives the focus to a RadioGroup control
·   SaveAs
Save a RadioGroup control as BitMap file.

EXAMPLE:

See demo in :
\Samples\Basic\RadioGroup
\Samples\Basic\MAINDEMO_(SYNTAX_I) to _(SYNTAX_IV)

and sample in Chapter:
Making a Choice