PRB: Screen Not Refreshing Properly After Being Hidden

Last reviewed: June 27, 1995
Article ID: Q107829
The information in this article applies to:
  • Microsoft FoxPro for Windows versions 2.5x, 2.6, 2.6a
  • Microsoft FoxPro for the Macintosh, version 2.5b

SUMMARY

Screens that contain a popup do not refresh properly if they are hidden and then shown. If the popup has not been opened, there will be a white rectangular area in the top left portion of the screen. If the popup has been opened, the white rectangular area will appear where the popup was opened. The rectangular area will be white no matter what color the desktop or background windows are.

MORE INFORMATION

The following sample program illustrates the problem:

   DEFINE WINDOW test ;
             AT 0.000, 0.000 ;
          SIZE 16.154,45.000 ;
          FONT "MS Sans Serif", 8 ;
          FLOAT ;
          NOCLOSE ;
          NOMINIMIZE ;
          SYSTEM ;
          COLOR RGB(,,,0,0,128)

   SET SYSMENU ON
   ACTIVATE WINDOW test

   @ 2.769,2.400 GET mpop ;
          PICTURE "@^ Hello;Goodbye;Yes;No;Red;Green;Blue" ;
          SIZE 1.538,12.667 ;
          DEFAULT "Hello" ;
          FONT "MS Sans Serif", 8 ;
          STYLE "B"

   READ CYCLE
   CLEAR ALL
   CLEAR

Once the screen is up, choose Hide from the Window menu. After the screen is hidden, hold down the SHIFT key and choose SHOW ALL from the Window menu. There should be a white rectangular area at the top left of the screen. It will disappear if the popup is opened. If the window is hidden again and then shown after the popup has been opened, the white rectangular area will be the size of the popup and at the location where the popup was opened.

NOTE: If you select the window by name without holding down the SHIFT key, the window is repainted properly.

REFERENCES

FoxPro for Windows "User's Guide," version 2.5, page U7-2 FoxPro for Windows "Language Reference," version 2.5, pages L3-83 through L3-97, L3-170 through L3-173, L3-427 through L3-437 and L3-1001


Additional reference words: FoxMac FoxWin 2.50 2.50a 2.50b 2.60 2.60a hide
show refresh pop-up
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral


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: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.