DISABLE (dim a control)

Top  Previous  Next

 

DISABLE( [ first control ] [, last control ] )

DISABLE

Dims controls on the window.

first control

Field number or field equate label of a control, or the first control in a range of controls. If omitted, defaults to zero (0).

last control

Field number or field equate label of the last control in a range of controls.

The DISABLE statement disables a control or a range of controls on an APPLICATION or WINDOW structure. When disabled, the control appears dimmed on screen.

Example:

Screen WINDOW,PRE(Scr)

       ENTRY(@N3),USE(Ctl:Code)

       ENTRY(@S30),USE(Ctl:Name)

       BUTTON('OK'),USE(?OkButton),KEY(EnterKey)

       BUTTON('Cancel'),USE(?CanxButton),KEY(EscKey)

      END

CODE

OPEN(Screen)

DISABLE(?Ctl:Code)        !Disable a control

DISABLE(?Ctl:Code,?Ctl:Name)    !Disable range of controls

DISABLE(2)             !Disable the second control

 

See Also:

ENABLE

HIDE

UNHIDE