FoxPro

FoxPro Developer's Conference '94

Session 121
Session 224
GENMENUX

Andrew Ross MacNeill
PC Edge Inc.


Introduction

      CONFIG.FP Directives - all CONFIG.FP directives are preceded with a _

   

      AUTOACT

      Automatically Activates the menu after creating it.

      AUTOHOT

      Automatically adds Hot keys to top menu bar without labels. (ALT+ only)

      AUTOPOS

      Allows the developer to place the menu on a line when it is being compiled.

      AUTORUN

      Automatically runs the menu upon completion.

      FOUNDATION

      Automatically creates a FOUNDATION READ at the bottom of the menu file.

      FOXMNX

      Defines the Menu Template File.

      GENMENUX

      Runs driver specified instead of standard GENMENU.

      HIDE

      Hides the Menu while the MPR file is being run so menu pads won't distract the user.

      MNXDRV1-5

      Identifies Driver x for the MNX file

      MPRDRV1-2

      Identifies MPR drive for the MPR object file

      NOXTHERM

      Removes the GENMENUX Extended Thermometer in favour of the traditional FoxPro.

      REFPRG

      Identifies Refresh Program that GENMENUX will create to help in the refreshing of conditional CASE and ARRAY menus.

      SYSPOP

      Wraps all procedures with PUSH MENU _MSYSMENU ,POP MENU _MSYSMENU statements to preserve menu settings before a procedure is called.

   

       

      Setup/Menu Procedure Directives - all setup directives are preceded with a *:

      {{}}

      Identical functionality to {{}} in GENSCRNX.

      AUTOACT

      Automatically Activates the menu after creating it.

      AUTOHOT

      Automatically adds Hot keys to top menu bar without labels. (ALT+ only)

      AUTOPOS

      Allows the developer to place the menu on a line when it is being compiled.

      AUTORUN

      Automatically runs the menu upon completion.

      BARHOT

      Automatically adds CTRL hot keys for a menu item or submenu.

      DEFLIB

      Defines the Default Library to be used when defining menu template objects.

      FOUNDATION

      Automatically creates a FOUNDATION READ at the bottom of the menu file.

      FOXMNX

      Defines the Menu Template File.

      HIDE

      Hides the Menu while the MPR file is being run so menu pads won't distract the user.

      INCLIB

      Defines the Default Library to be used when retrieving menu template objects.

      INSSCX

      Inserts a DO .MPR call within a screen file. Also allows you to call the menu from within a MODAL screen and preserve the original menu settings.

      LINE

      Places the menu at line specified. This should be a numeric value. Be warned under Windows!

      LOCATION

      Allows you to set the location of the menu in relation to the current menu (REPLACE, APPEND, BEFORE or AFTER) instead of having to identify it under Menu Options.

      MENUCOLOR

      Adds the COLOR clause setting to the DEFINE MENU statement if one is present in the MPR file.

      MENUNAME

      Renames the default _MSYSMENU menu name in the MPR file to whatever is specified. This does not have to be in quotes. If it is, the quotes are stripped from the word.

      MNXDRV0-5

      Identifies Driver x for the MNX file

      MPRDRV1-2

      Identifies MPR drive for the MPR object file

      NOACT

      Removes the statement ACTIVATE MENU _MSYSMENU from the MPR file.

      NOAUTO

      Removes the statement SET SYSMENU AUTOMATIC from the MPR file.

      NOBAR

      Removes the BAR statement. Usually only required if renaming menu. Be warned under Windows!

      NOGEN

      Does not generate the MPR file

      NOMARGIN

      Removes the MARGIN clause from the MPR file.

      NOSHADOW

      Removes the SHADOW clause from the MPR file.

      NOXGEN

      Does not process any GENMENUX directives.

      NOXTHERM

      Removes the GENMENUX Extended Thermometer in favour of the traditional FoxPro.

      PADCOLOR

      Changes the Default Menu Pad color from color Scheme 4 to whatever number is specified. No quotes please!

      POPCOLOR

      Changes the Default Menu Popup color from color Scheme 4 to whatever number is specified. No quotes please!

      REFPRG

      Identifies Refresh Program that GENMENUX will create to help in the refreshing of conditional CASE and ARRAY menus.

      SELECTBAR

      Changes the ON BAR statements to ON SELECTION BAR.

      SELECTPAD

      Changes the ON PAD statements to ON SELECTION PAD.

      SYSDEFAULT

      Makes the Menu become the FoxPro default by adding the line SET SYSMENU NOSAVE to the bottom of the MPR file.

      SYSPOP

      Wraps all procedures with PUSH MENU _MSYSMENU ,POP MENU _MSYSMENU statements to preserve menu settings before a procedure is called.

      VERTICAL

      Makes a menu orientation vertical instead of horizontal starting at a particular location.

      WINDOW

      Allows you to place a menu within a window and define the window within the MPR with specific window definition clauses.

       

      Comment Directives - all Comment directives are preceded with a *:

   

      {{}}

      Identical functionality to {{}} in GENSCRNX.

      ARRAY

      Makes a menu popup definable by an array instead of within the MPR file. Good for dynamic menus.

      BARHOT

      Automatically adds CTRL hot keys for a menu item or submenu.

      CASE

      Adds or removes a menu bar when a general condition is not met.

      COLOR

      Allows you to designate a Color Pair setting for a particular menu item. Under Windows and Macintosh, allows you to identify color by name.

      COLORSET

      Allows a specific color scheme setting for a particular menu item.

      DEFOBJ

      Defines the current menu pad/procedure as a menu object in the menu template file.

      DEFPOPIF

      Makes the definition of a menu popup conditional if the menu popup already exists. This has no effect on the options of the popup but will speed up the running of the MPR file.

      DELETE

      Removes menu pad prior to calling GENMENU

      DELOBJ

      Removes menu pad prior to calling GENMENU but AFTER initial GENMENUX directives has processed.

      GENIF

      Removes a menu pad or bar from the MNX file during compilation if condition is not met.

      IF

      RELEASES a menu PAD or BAR if condition is not met

      IGNORE

      Tells GENMENUX to ignore the menu or the pad for GENMENUX processing.

      INSOBJ

      Inserts a menu object from a menu template file.

      MESSAGE

      Adds a message clause to the menu definition. This replaces the FPW's message clause. The message must be enclosed in quotes unless it is a variable.

      PADNAME

      Identifies a particular name to a menu pad without having to go into Menu Options.

      PADPOS

      Defines the menu pad at a particular row and column.

      POPCOMMAND

      Adds the line ON SELECTION POPUP for each popup using POPFILES or POPFIELD, the expression must be a valid FoxPro command. Quotes ARE NOT STRIPPED from the expression.

      POPFIELD

      Allows for a popup of fields matching the file spec matching the expression. Quotes are not needed and if used, will return the text instead of the field.

      POPFILES

      Allows for a popup of files matching the file spec matching the expression. Quotes are ignored in the expression as per standard FoxPro behaviour

      POPNAME

      Identifies a particular name to a menu popup without having to go into Menu Options.

      POPPOS

      Defines the menu popup at a particular row and column.

      POPPRECOMMAND

      Identifies a particular command to be run before a popup is defined. For use with the POPFIELD and POPFILES directives only.

      POPTITLE

      Identifies a particular title for a menu popup.

      SYSPOP

      Wraps all procedures with PUSH MENU _MSYSMENU ,POP MENU _MSYSMENU statements to preserve menu settings before a procedure is called.

      TRNTXT

      Translates Text within a procedure file.

 

 



Session 121
Session 224
GENMENUX Drivers

Andrew Ross MacNeill
PC Edge Inc.


GENMENUX Drivers


GenMenuX
(c)1994 Andrew Ross MacNeill