home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a079 / 1.img / FPDG.LZH / VOL2NUM0 / SYSPOPUP / SYSPOPUP.ART < prev    next >
Encoding:
Text File  |  1993-02-01  |  1.7 KB  |  7 lines

  1. Program SYSPOPUP.PRG illustrates how you can modify the FoxPro System menu bar and its associated popup menus.  It shows you how to build your own system menu bar. In SYSPOUP.PRG, pads will be removed from the FoxPro System menu bar and three new pads will be added. When you choose either of the three pads, a popup is activated. Before you create any new menu pads, you save the current FoxPro System menu bar in memory with the SET SYSMENU SAVE. (Incidentally, the name of the system menu bar is _SYSMENU.) You remove all of the System menu pads with the SET SYSMENU TO command. You may just want to add a new pad to the system menu. Then you do not use the SET SYSMENU TO command. 
  2.  
  3. Next you create the new menu system. You will probably want to use color styles 3 when you define a menu pad and color style 4 when you define a popup to conform with the color scheme normally used with the FoxPro 2.5 System menu. You will need to use the ON PAD command to link the new menu pads to the new popups. As you know, the FoxPro System menu normally remains displayed after the SYSPOPUP program exits. As a result, you will need to specify the IN SYSPOPUP clause with the DO command so that FoxPro will know where the popup action procedure (Action) resides. Finally, you do not need to activate the menu system since the System menu bar already is active.
  4.  When an option is chosen from the popup, the popup menu action procedure (Action) is called to execute the option. When you choose the Exit menu, the system menu bar pads and popups created in the SYSPOPUP.PRG procedure system are deactivated and then released. Finally, the original system menu is restored with the SET SYSMENU TO DEFAULT command.
  5.  
  6.  
  7.