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

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.


Additional query words: VFOXWIN KBDSD

Keywords : kbenv FxprgClassoop
Version : WINDOWS:3.0,3.0b
Platform : WINDOWS
Issue type :


Last Reviewed: February 3, 2000
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.