Microsoft KB Archive/119249

{| = BUG: .APP Run from Run Menu Loses Menu If No Foundation READ =
 * width="100%"|

ID: Q119249

The information in this article applies to:


 * Microsoft FoxPro for Macintosh, versions 2.5b, 2.5c

SYMPTOMS
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 command in the Command window. This behavior will occur only when there is no foundation READ in the application.

CAUSE
This behavior is caused by a problem in the FOXSTART.APP program that displays the Run menu when FoxPro is started.

WORKAROUNDS
To work around this problem, do one of the following:

 Run the application by choosing Do from the Program menu. -or- Run the application by typing "DO " (without the quotation marks) the Command window. -or- Put a foundation READ in the application. For more information about including a foundation READ in your application, see pages 633-636 in the FoxPro "Language Reference" or see page 9 in the "User's Guide" for the FoxPro for Macintosh Distribution Kit.

STATUS
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.

Steps to Reproduce Problem
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:
 * }