ControlEnabled

<< Click to Display Table of Contents >>

Navigation:  Interactive Objects >

ControlEnabled

Previous pageReturn to chapter overviewNext page

Enables / disables the specified control. A disabled control can not receive the focus, therefore the user can not change the control's value, neither with the keyboard, nor with the mouse. It is still possible to change the values of disabled controls by code.

This method belongs to TVPEObject.

property boolean VPE.ControlEnabled

read / write; runtime only

Possible Values:

Value

Description

True

the control is enabled for editing

False

the control is disabled for editing

Remarks:

You may access this property also for a VPE object that has a NULL-Handle, in this case a write access does nothing and a read access returns False.

Example:

// Retrieves the Control Handle of the object named "Street"

// and enables the control

objTemplate.FindControl("Street").ControlEnabled = True

 

See also:

"Interactive Documents" in the Programmer's Manual.