EDIT Mnemonic - Create An Edit Control

Syntax

'EDIT'(id,x,y,w,h,title,flags)

Description

The 'EDIT' mnemonic creates an edit control, which displays a single line of text for editing. If multiple lines of text are needed, the 'CEDIT' mnemonic must be used instead. One special use of the edit control is for password entry, where the password flag ($0400$) is enabled. As the password is entered, asterisks are displayed in the control, one for each character entered.

Parameter

Description

id

Control ID number. It must be an integer between 1 and 32767 and be unique within a given top-level window.

x

Horizontal position of the upper-left corner of the control in current units.

y

Vertical position of the upper-left corner of the control in current units.

w

Width of the control in current units.

h

Height of the control in current units.

title

Title of the control.

flags

Control flags, as follows:

 

Flag 

Description

 

$0000$

Left justifies edit text (default).

 

$0001$ 

Causes the control to be initially disabled.

 

$0010$ 

Causes the control to be initially invisible.

 

$0100$ 

Passes the <Home> and <Delete> keys as Keypress Notify events.

 

$0400$ 

Replaces input text with asterisks for a masked password.

 

$0200$

Defines the edit text as read-only (Visual PRO/5 Rev. 3.12 or later).

 

$0800$ 

Draws a recessed client edge around the control

 

$1000$ 

Draws a raised edge around the control

 

$4000$ 

Centers edit text.

 

$8000$ 

Right justifies edit text.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing