How To Add Calculator, Calendar, Puzzle, Filer to System Menu

Last reviewed: June 13, 1996
Article ID: Q152366
The information in this article applies to:
  • Microsoft Visual FoxPro for Macintosh, version 3.0b
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b

SUMMARY

The FoxPro applets, Calculator, Calendar, Filer, and Puzzle, are not included on any menu. The code below demonstrates how to add these items to the menu.

MORE INFORMATION

Sample Code

   DEFINE BAR 9 OF _mwindow PROMPT "\-"
      DEFINE BAR 10 OF _mwindow PROMPT "Ca\<lculator" ;
           MESSAGE "Perform calculations"
      ON SELECTION BAR 10 OF _mwindow ACTIVATE WINDOW CALCULATOR
      DEFINE BAR 11 OF _mwindow PROMPT "Calendar/D\<iary" ;
           MESSAGE "Check dates and keep track of appointments"
      ON SELECTION BAR 11 OF _mwindow ACTIVATE WINDOW CALENDAR
      DEFINE BAR 12 OF _mwindow PROMPT "\<Filer" ;
           MESSAGE "Manage files and directories"
      ON SELECTION BAR 12 OF _mwindow ACTIVATE WINDOW FILER
      DEFINE BAR 13 OF _mwindow PROMPT "Pu\<zzle" ;
           MESSAGE "Solve a puzzle"
      ON SELECTION BAR 13 OF _mwindow ACTIVATE WINDOW PUZZLE
      SET SYSMENU SAVE


Additional reference words: 3.00 3.00b VFoxWin VFoxMac
KBCategory: kbenv kbhowto
KBSubcategory: FxenvGeneral



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 13, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.