Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>@ id ... radiobutton</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
@ ID ... RADIOBUTTON
Use a radio button control in a dialog
------------------------------------------------------------------------------

Syntax
#include "windows.ch"
#include "topclass.ch"   --or--   #define  NO_C4WCLASS
#include "commands.ch"
@ ID  <nId>  RADIOBUTTON
     [ <clauses> ]

Arguments
See the generic @ ID ... <ControlType> command for details of
the <clauses> and/or parameters allowed.  The most common
clauses are <cCmd> and ACTION.

Description
This command can be used to put a radio button in a dialog.

When using a dialog editor, you should normally choose the
style BS_AUTORADIOBUTTON, optionally with WS_TABSTOP.  The
first radio button in a group (or a preceding
frame/groupbox/text control) should normally have the WS_GROUP
style.  The WRadioButton class can then search for all the
buttons in the group to be able to control them appropriately.

See the generic @ ID ... <ControlType> command for more
information.

Example
// From SOURCE\OO\DBFGEN.PRG:
@ Id IDD_CHAR  RadioButton  Action ::Type("C")  Obj oChar
oChar:Checked := .t.
@ Id IDD_NUM   RadioButton  Action ::Type("N")
@ Id IDD_DATE  RadioButton  Action ::Type("D")
@ Id IDD_MEMO  RadioButton  Action ::Type("M")
@ Id IDD_LOGIC RadioButton  Action ::Type("L")


See Also: @ ID ...

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson