TakeFocus

Determines whether the OCX control gets focus so that the user does not need to click the control first. True (default) or False.

"TakeFocus=True | False"

Value

Description

True (true)

The focus is first set to the OCX container window and then to the control itself.

False

The focus is set to the OCX container window, not to the control.

Usage

Dynamic?

Yes

Supported in Grid?

No

Dependencies:

None

Description

In some cases, the default value causes the control to work incorrectly, and it only works after the user has activated it with a mouse click. In this case, set TakeFocus to False.

Using in ProcScript

You can use $properties or $fieldproperties to set or get the property and its value. For more information, see $properties and $fieldproperties.

$fieldproperties(FLD) = "TakeFocus=False"