Method Get():setFocus() Foundation

Gives input focus.

:setFocus() --> self

:setFocus() returns a reference to the Get object.


:setFocus() gives input focus to the Get object. When a Get object processes this method, the data code block is evaluated with no argument, its return value is assigned to the edit buffer, and all internal instance variables that have meaning only when the Get object has focus as well as the exported instance variables :changed, :clear, :decPos, :original, :pos and :type are set to their default values. The edit buffer is then displayed using the second color held in the instance variable :colorSpec.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.