Microsoft KB Archive/131289

= How to Add to the System Menu as Visual FoxPro Starts =

Article ID: 131289

Article Last Modified on 2/15/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q131289



SUMMARY
This article shows by example how to add items to the System menu automatically as Visual FoxPro version 3.0 starts.



MORE INFORMATION
The Example code adds menu items for the Calculator, Calendar, Filer, and Puzzle.

Step-by-Step Example
 Open the VFPSTART.PRG file:  To do this from the MENU:

 From the File menu, choose Open. Change the Files of type to Program. Select VFPSTART.PRG, and choose OK.   To do this from the Command window, issue the following command to bring up the Modify Program window: Modify Command VFPSTART.PRG </li></ol> </li>  Add the following source code to the beginning of the file: DEFINE BAR 7 OF _msystem PROMPT '\-' DEFINE BAR 8 OF _msystem PROMPT 'Ca\<lculator' ; MESSAGE 'Perform calculations' ON SELECTION BAR 8 OF _msystem ACTIVATE WINDOW CALCULATOR DEFINE BAR 9 OF _msystem PROMPT 'Calendar/D\<iary' ; MESSAGE 'Check dates and keep track of appointments' ON SELECTION BAR 9 OF _msystem ACTIVATE WINDOW CALENDAR DEFINE BAR 10 OF _msystem PROMPT '\<Filer' ; MESSAGE 'Manage files and directories' ON SELECTION BAR 10 OF _msystem ACTIVATE WINDOW FILER DEFINE BAR 11 OF _msystem PROMPT 'Pu\<zzle' ; MESSAGE 'Solve a puzzle' ON SELECTION BAR 11 OF _msystem ACTIVATE WINDOW PUZZLE SET SYSMENU SAVE </li> Save the Program.</li> Exit and restart FoxPro to make the changes take effect.</li></ol>

Additional query words: VFoxWin

Keywords: kbcode KB131289

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.