FIX: ACTIVATE WINDOW NOSHOW & READ MODAL Won't Work w/ Popup

Last reviewed: October 20, 1997
Article ID: Q118490
2.50b 2.50c MACINTOSH kbprg kbfixlist kbbuglist

The information in this article applies to:

  • Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c

SYMPTOMS

When an object, other than a popup, is defined in a window that has been activated with the NOSHOW clause, and then a READ MODAL command is executed, the window will automatically be displayed. However, if a popup is added to the window, the READ MODAL command will execute and terminate immediately.

RESOLUTION

This behavior is easily corrected by adding an ACTIVATE WINDOW <window name> or SHOW WINDOW <window name> command after all the objects have been defined but before the READ MODAL command.

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 Visual FoxPro 3.0b for Macintosh.

MORE INFORMATION

Steps to Reproduce Problem

The following code demonstrates the behavior described above:

   testvar=1
   DIMENSION testarray(3)
   testarray=""
   testarray(1)="item"
   DEFINE WINDOW wtest AT 1,1 SIZE 10,10 FLOAT CLOSE
   ACTIVATE WINDOW wtest NOSHOW
   @ 1,1 GET testvar PICTURE "@^" FROM testarray SIZE 1.5,8
   DEFAULT 1 ;
      FONT "MS SANS SERIF",8
   READ MODAL


Additional reference words: FoxMac 2.50b 2.50c buglist2.50b buglist2.50c
fixlist3.00b VFoxMac
KBCategory: kbprg kbfixlist kbbuglist
KBSubcategory:
Keywords : kbbuglist kbfixlist kbprg
Version : 2.50b 2.50c
Platform : MACINTOSH
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 20, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.