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

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

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

Description
This command lets you use a multi-line edit control (similar
to a memo field) in a dialog.  There is also the @ ID ... EDIT
command for single-line edits.  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_MULTILINE, ES_WANTRETURN (so that the
user can press Enter instead of Control+Enter at the end of a
line), ES_AUTOHSCROLL, ES_AUTOVSCROLL, WS_BORDER and
WS_TABSTOP.

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

Example
// From SOURCE\OO\VBXGEN.PRG:
CLASS VBXDialog INHERIT WDialog
     PROTECT   oVBXName, oPRGName, oCHName, oSource, oCHSrc
     // . . .
     METHOD OnInitDialog()
ENDCLASS

METHOD OnInitDialog() CLASS VBXDialog
@ Id IDD_SOURCE   Obj ::oSource   MultiLine Edit
// . . .
SendMessage(::oSource:hWnd, WM_SETFONT, ::hFont, 0)
// . . .

METHOD Generate() CLASS VBXDialog
// . . .
::oSource:Text = cSource
SetFocus(GetDlgItem(::hWnd, IDD_SOURCE))
EditSetSel(::oSource:hWnd, 0, 0)
// . . .


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

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