<< Click to Display Table of Contents >> VpeSetControlEnabled |
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.
void VpeSetControlEnabled(
VpeHandle hControl,
int yes_no
)
VpeHandle hControl
Control Handle
int yes_no
Value |
Description |
True |
enable the control for editing |
False |
disable the control |
Example:
// Retrieves the Control Handle of the object named "Street"
// and enables the control
VpeSetControlEnabled(VpeFindControl(hTemplate, "Street"), TRUE);
Remarks:
The function allows that hControl may be NULL, in this case the function does nothing.
"Interactive Documents" in the Programmer's Manual.