User Tools

Site Tools


disable_dim_a_control_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== DISABLE (dim a control) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

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

blk2blue.jpg

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

disable_dim_a_control_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1