ID: Q118490
2.50b 2.50c MACINTOSH kbprg kbfixlist kbbuglist
The information in this article applies to:
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.
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.
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.
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
Last Reviewed: October 20, 1997