VpeSetFocusControl

<< Click to Display Table of Contents >>

Navigation:  Interactive Objects >

VpeSetFocusControl

Previous pageReturn to chapter overviewNext page

Sets the focus to a control.

int VpeSetFocusControl(

VpeHandle hDoc,

VpeHandle hControl

)

VpeHandle hDoc

Document Handle

VpeHandle hControl

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:

hControl = VpeFormFieldControl(hDoc, 1, 1, -9, VFREE, "Hello World!");

VpeSetFocusControl(hDoc, hControl);

 

See Also:

"Interactive Documents" in the Programmer's Manual.