FIX: WHEN Clause Not Invoked When Bar Is Moved

Last reviewed: October 14, 1997
Article ID: Q105151
2.50 WINDOWS kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Windows, version 2.5

SYMPTOMS

Moving a bar does not invoke the WHEN clause in a popup defined with the MOVER clause. The expected behavior is for the WHEN clause to be invoked every time the bar is moved.

STATUS

Microsoft has confirmed this to be a problem in FoxPro 2.5 for Windows. This problem was corrected in FoxPro 2.5a for Windows.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create and run a program with the following code:

          DEFINE POPUP test MOVER
          DEFINE BAR 1 OF test PROMPT 'one'
          DEFINE BAR 2 OF test PROMPT 'two'
          DEFINE BAR 3 OF test PROMPT 'three'
    

          @ 10,10 GET x POPUP test DEFAULT 1 WHEN mywhen()
          READ
    

          PROCEDURE mywhen
          WAIT WINDOW 'In WHEN'
    

  2. Note that the WAIT WINDOW, which is called by the WHEN clause, is displayed immediately.

  3. Click and release bar "one." The WAIT WINDOW clears.

  4. Click the button on bar "one" and drag it to another position. Release the mouse button.

The WAIT WINDOW does not display.


Additional reference words: FoxWin 2.50 buglist2.50 fixlist2.50a pop-up
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory: FxprgGeneral
Solution Type : kbfix


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