Popup Menus

Prev Next Home Home Table Of Contents Index

POPUP MENUS

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'
    ^Smart

The 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'

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

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.

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home