Edit Controls


Edit controls are capable of displaying a single line of text for editing. (If multiple lines of text are needed, use a custom edit control.) One special use of the edit box is for password entry, when the password flag is enabled. As the password is typed, asterisks are displayed in the control, one for each character entered.

Creating

Mnemonic

Description

'EDIT'

Create an Edit Control.

Manipulating

Mnemonic

Description

'SELECT'

Select Text (Used to position the caret or select text.)

'TITLE'

Set Control Title.

Querying

CTRL() Function

Information Returned

0

Outer rectangle of the control in current scaled units.

1

Text of the edit control.

4

Control class and type.

8

Visible/invisible and enabled/disabled status of the control.

12

Current text selection.

15

Background color of the control.

16

Foreground color of the control.