OWLNext 7.0
Borland's Object Windows Library for the modern age
|
One of TEdit's constructors takes parameters for an initial text string, maximum string length (including the terminating NULL), and a bool flag specifying whether or not it Is a multiline edit control (in addition to the parent window, resource identifier, and placement coordinates).
This TEdit constructor is declared as follows:
By default, the edit control has the styles ES_LEFT (for left-aligned text), ES_AUTOHSCROLL (for automatic horizontal scrolling), and WS_BORDER (for a visible border surrounding the edit control). Multiline edit controls get the additional styles ES_MULTILINE (specifies a multiline edit control), ES_AUTOVSCROLL (automatic vertical scrolling), WS_VSCROLL (vertical scroll bar), and WS_HSCROLL (horizontal scroll bar).
The following are typical edit control constructor calls, one for a single-line control, the other multiline: