CONTROL DISABLE statement

Purpose

Disable a control so that it no longer receives any messages or accepts user interaction.

Syntax

CONTROL DISABLE hDlg, id&

Remarks

hDlg refers to the dialog that owns the control. id& is the unique control identifier as assigned to the control with a CONTROL ADD statement.

A disabled control will not receive any messages when clicked with the mouse or selected with the keyboard. Most, but not all, controls will redraw themselves as "gray" when disabled.

See also

Dynamic Dialog Tools, CONTROL ENABLE, CONTROL KILL