Error getting tags :
error 404Error getting tags :
error 404 focus | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
focus
Basics
Expander triangle
Type
Command
Syntax
focus [on] object
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Places the insertion point in a field or makes a control active.
Examples

focus on field "Label"
focus on the mouseControl
focus on graphic "Move Me"

Additional Comments
Expander triangle

Use the focus command to make a control active--that is, to make it receive any keystrokes the user types.

Parameters:

The object is any object on the current card.

Comments:

If the object's traversalOn property is false, it cannot receive the focus, and the focus command causes an error.

If the lookAndFeel is set to "Motif", the focused control is outlined, and the control receives any keystrokes (and the messages associated with them).

If the lookAndFeel is set to "Appearance Manager" or "Macintosh", an outline is drawn around fields, images, and EPS objects whose showFocusBorder property is set to true. Otherwise, the appearance of the focused control does not change, but it receives keystroke messages.

If the lookAndFeel is set to "Windows 95", a dotted outline is drawn within buttons when they receive the focus.

If the object is an unlocked field, the insertion point is placed after the text in the field.

User Comments
Expander triangle