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 ... checkbox</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
@ ID ... CHECKBOX
Use a checkbox control in a dialog
------------------------------------------------------------------------------

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

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

Description
This command can be used to put a check box in a dialog.

When using a dialog editor, you should normally choose the
style BS_AUTOCHECKBOX, probably with WS_TABSTOP.

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

Example
@ ID  IDD_RECEIPT  CHECKBOX  Receipt

METHOD Receipt(oReceipt) CLASS MyDialog
// oReceipt:Checked is .T. if currently checked
return 1


See Also: @ ID ...

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