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

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

Arguments
See the generic @ ID ... <ControlType> command for details of
the <clauses> and/or parameters allowed.

Description
This command lets you use an edit control (for an input field)
in a dialog.  This command is intended for single-line edits;
there is also the @ ID ... MULTILINE EDIT command.  For an
edit control more like a Clipper GET, see @ ID ... GET.  The
TEXT (or INITIAL) clause can be used to pre-load a string into
an edit control.

Common styles include ES_AUTOHSCROLL, WS_BORDER and
WS_TABSTOP.

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

Example
CLASS MyDialog INHERIT Wdialog
     PROTECT oDBFName    AS OBJECT
     // . . .
ENDCLASS

METHOD SomeMeth() CLASS MyDialog
@ Id IDD_DBFNAME  Obj ::oDBFName  Edit
// . . .
::oDBFName:Text = cDBF   // set a new string
//or: SetWindowText(::oDBFName:hWnd, cDBF)  // same as above


See Also: @ ID ... @ ID ... GET @ ID ... MULTILINE EDIT

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