![]() ![]() ![]() ![]() | Table Of Contents | Index |
If you want to create a popup menu within a menu you can do so by using a "label". A label is a keyword preceded by a colon. To call the popup menu, place the keyword on a line by itself preceded by a carat (Shift 6). The label will precede the popup menu definition.
For example if you have a popup menu to load Smart Software, you could name the PopUpMenu Smart. To bring up the Smart PopUpMenu, define a key in your main menu for Smart like this:
OnKey 'S' ^SmartThe Smart menu itself might look something like this:
:Smart BoxHeaderColor ForeColor BackColor BoxBorderColor Yellow Green BoxInsideColor LCyan Green InverseColor Yellow Red BoxHeader = ' Smart Menu ' DrawBox 45 16 20 6 UseArrows 2 2 16 3 ClearLine 205 Writeln Writeln ' Data Base' Writeln ' Spread Sheet' Write ' Word Processor'While developing the menu, program one of the keys to run your favorite editor on the menu file that you are creating. This way, as soon as the change is made, the results will show when you exit your editor. Since MarxMenu allows versatility in creating the look of your menus, a little trial and error will be required to make things look right.OnKey 'D' SM D
OnKey 'S' |BoxHeaderColor ForeColor BackColor |BoxBorderColor Yellow Green |BoxInsideColor White Green |%1 = PickFile('C:\SMART\SPREAD\*.WS',4,5,17) SM S -ALOAD %1
OnKey 'W' |BoxHeaderColor ForeColor BackColor |BoxBorderColor Yellow Green |BoxInsideColor White Green |%1 = PickFile('C:\SMART\WORD\*.DOC',4,5,17) SM W -ALOAD %1
![]() ![]() ![]() ![]() | Table Of Contents | Index |
|