FIX: LostFocus of Form in Formset Does Not Fire with Mouse

Last reviewed: January 14, 1997
Article ID: Q162082
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SYMPTOMS

The LostFocus event of Form in a FormSet does not fire when a mouse is used to change the active form. However, using the keyboard does fire the form's LostFocus.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in FoxPro 5.0 for Windows.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a New Form.

  2. On the Form menu, click "Create Form Set."

  3. On the Form menu , click "Add New Form."

  4. Add a Textbox control to each Form.

  5. Edit Form1's LostFocus method and add the following code:

          WAIT WINDOW "Form1's LOSTFOCUS"
    

  6. Edit Form2's LostFocus method and add the following code:

          WAIT WINDOW "Form2's LOSTFOCUS"
    

  7. Save and run the Form.

  8. Use the Mouse to click back and forth between the two forms. Notice that no Wait Windows appear.

  9. Now use the TAB key and cycle through the Textbox controls. Notice that the Wait Windows appear.


KBCategory: kbenv kbprg kbfixlist kbbuglist
KBSubcategory: FxprgClassoop
Additional reference words: 3.00 3.00b VFOXWIN KBDSD



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: January 14, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.