Edit Boxes

To create an edit box, call the following  subroutines from your application:

CALL PIX.GUI.LOAD.EDIT (GUI.APP.NAME, CONTROL.DETAILS, STRING)

Where:

CONTROL.DETAILS

Control ID, EDIT, X, Y, W, H, Label, {Key1,...Keyn}

Where:

Control ID

The unique name for the edit box.

EDIT

Text literal EDIT.

X

The X co-ordinate of the left of the edit box.

Y

The Y co-ordinate of the top of the edit box.

W

Width of the box (characters).

H

Height of the box (characters).

Label

Edit text to be passed to the Edit Control.

Key1...Keyn

Additional parameters if required, in any order - see below.

The following extra keyword parameters are available:

HIDE

SHOW*

GRAYED

UNGRAYED *

TERMITE *

HELV8

HELV10

PASSWORD

READONLY

READWRITE *

NOSELECT

SELECT *

HSCROLL

VSCROLL

BORDERON

BORDEROFF *

HSCROLLBAR

VSCROLLBAR

UPPER

LOWER

NOCASECONVERT*

LINELEN

SCULPTURE

INTRANGE

LONGDATE

SHORTDATE

ABBRDATE

SYSTEM

Alternatively, you can use the PIX.GUI.CONTROL.LOAD subroutine, see Loading all types of controls for details.

Edit Boxes Program Example

Note: This example shows the lines of code split up for ease of readability - one line of code would normally be displayed on one line.
085 CALL PIX.GUI.LOAD.EDIT("" ,"NAME,EDIT,9,2,26,1,Lezand, HSCROLL,SCULPTURE","")
086 CALL PIX.GUI.LOAD.EDIT("" ,"D.O.B,EDIT,45,2,10,1,21 Apr 92,SCULPTURE","")
087 CALL PIX.GUI.LOAD.EDIT "","ADDRESS,EDIT,
33,13,25,3,,HSCROLL,VSCROLL,VSCROLLBAR,SCULPTURE","")