ID: Q107829
The information in this article applies to:
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.
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.
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
Last Reviewed: June 27, 1995