ID: Q119249
The information in this article applies to:
An application (.APP) that is run by choosing Application from the Run menu will show its custom menu briefly, and then the menu will be replaced by the FoxPro system menu.
This behavior will not occur if the application is run by choosing Do from the Program menu or by issuing the DO <appname> command in the Command window. This behavior will occur only when there is no foundation READ in the application.
This behavior is caused by a problem in the FOXSTART.APP program that displays the Run menu when FoxPro is started.
To work around this problem, do one of the following:
-or-
-or-
Microsoft has confirmed this to be a problem in FoxPro versions 2.5b and 2.5c for Macintosh. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
1. Enter the following lines of code in a new program (.PRG) file:
SET SYSMENU TO
SET SYSMENU AUTOMATIC
DEFINE PAD x OF _MSYSMENU PROMPT "Fruit"
DEFINE PAD y OF _MSYSMENU PROMPT "Colors"
ON PAD x OF _MSYSMENU ACTIVATE POPUP fruit
ON PAD y OF _MSYSMENU ACTIVATE POPUP colors
DEFINE POPUP fruit
DEFINE BAR 1 OF fruit PROMPT "Apple"
ON SELECTION BAR 1 OF fruit WAIT WINDOW "Apple"
DEFINE POPUP colors
DEFINE BAR 1 OF colors PROMPT "Red"
ON SELECTION BAR 1 OF colors WAIT WINDOW "Red"
2. Save the program as TEST.PRG.
3. Create a new project and add TEST.PRG to it as a program.
4. Save the project and build the application. Call it TEST.
5. Run TEST.APP by choosing Application from the Run menu.
TEST.APP displays its custom menu for a moment, and then the menu is
replaced by the FoxPro system menu.
6. Run TEST.APP by choosing Do from the Program menu.
TEST.APP runs with no problems.
7. To return to the FoxPro system menu, issue the following command in the
Command window:
SET SYSMENU TO DEFAULT
Additional reference words: FoxMac 2.50b 2.50c buglist2.50b buglist2.50c
flashes
flickers momentarily
KBCategory: kbprg kbbuglist
KBSubcategory:
Last Reviewed: May 16, 1996