Microsoft KB Archive/107829

{| = PRB: Screen Not Refreshing Properly After Being Hidden =
 * width="100%"|

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.