<< Click to Display Table of Contents >> SetFocusControl |
Sets the focus to a control.
method boolean VPE.SetFocusControl(
TVPEObject objControl
)
TVPEObject objControl
Control Handle - the focus is set to the control identified by this handle
Returns:
Value |
Description |
True |
success, the control was found and the focus could be set |
False |
otherwise, for example if every object - or the whole document - is disabled, or the object which currently owns the focus did not allow to remove the focus |
Remarks:
If the parameter hControl is NULL, the focus is removed from the control currently having the focus.
Example:
Dim objControl As TVPEObject
objControl = Doc.FormFieldControl(1, 1, -9, VFREE, "Hello World!")
Doc.SetFocusControl(objControl);
.NET:
use Doc.nFree instead of VFREE in the example above
"Interactive Documents" in the Programmer's Manual.