advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
GotFocus Event Details
  Summary  Details  Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
 SUB Form_GotFocus ()
 SUB ctlname_GotFocus ([Index AS INTEGER])
 
 Usage Notes
   ■ Typically, you use a GotFocus event procedure to prescribe actions to
     occur when a control or form first receives the focus. For example, by
     attaching a GotFocus event procedure to each control on a form, you can
     guide the user by displaying brief instructions on the screen or status
     bar messages. You can also provide visual cues by enabling, disabling,
     or displaying other controls that depend on the control that has the
     focus. See: Focus Definition
 
   ■ An object can receive the focus only if its Enabled and Visible
     properties are set to True (-1).
 
   ■ To customize the keyboard interface so that the focus can be moved from
     one control to another, set the tab order or specify access keys for
     controls on a form.
 
   ■ A control that has the focus cannot receive a second GotFocus event even
     if the SETFOCUS method is used. See: SETFOCUS Method