How To Add Calculator, Calendar, Puzzle, Filer to System Menu (152366)



The information in this article applies to:

  • Microsoft Visual FoxPro for Macintosh 3.0b
  • Microsoft Visual FoxPro for Windows 3.0
  • Microsoft Visual FoxPro for Windows 3.0b

This article was previously published under Q152366

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
				

Modification Type:MajorLast Reviewed:10/15/2003
Keywords:kbenv KB152366