PRB: DblClick Event Fires After Keystroke Followed by Space

Last reviewed: April 16, 1997
Article ID: Q166941
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS

In Visual FoxPro 3.x and 5.x, the DBLCLICK event of a LISTBOX triggers after any keystroke followed by space. This can cause a problem when performing an incremental search on a search string that has spaces in between.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

The DBLCLICK event should only trigger if a double mouse click is performed.

Steps to Reproduce Behavior

  1. Create a new form.

  2. Add a list box to the form. Set the RowSourceType property to 1 (Values), and RowSource to "AB, A B".

  3. Put the following code in the list box DBLCLICK event:

          WAIT WINDOW "DblClick"
    

  4. Save and run the form.

Try to find line "A B" using incremental search, for example, type "A", then <Space>. The Wait window appears at the upper-right corner.

NOTE: Even if you do not have code for DBLCLICK event, there is no way to search for strings with spaces inside.


Keywords : FxprgClassoop FxtoolFormdes kbprg kbtool vfoxwin
Version : 3.0 3.0b 5.0 5.0a
Platform : WINDOWS
Issue type : kbprb


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: April 16, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.