SetFocus method

Moves the input focus to the specified object.
Syntax
object
.
SetFocus
where
object
– is the name of a Button, NumericInput, StringInput, Recipe, or ActiveX object or an expression that evaluates to one of these objects.
Remarks
  • If the display that contains the object is obscured by any other display, it is moved in front of any display of the same type (equivalent to issuing the PullForward command) before setting the focus to the object.
  • Setting focus to a NumericInput or StringInput object puts the object into the input state (gfxInputFieldStateInput).
  • Attempts to set focus to an object on a hidden display or an object that is disabled, causes an error to be raised with Err.Number equal to gfxErrorSetFocus.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal