home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 July & August
/
Pcwk78b98.iso
/
Smart30
/
ENGLISH
/
PRODUCTS
/
LOTUS018.DSK
/
MENULITE.SMM
< prev
next >
Wrap
INI File
|
1992-09-01
|
13KB
|
706 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[desc]
Toggle between long and short menus.
Lotus WPD Inside Sales
Intermediate
Global Variables, AddMenus
autorun
715375291
60
679254902
382
4
118
932
4
4
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[tag]
New
5
[fnt]
Arial
240
255
16385
[algn]
1
1
216
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
16
0
0
[nfmt]
272
1
3
.
,
$
New
0
0
[lay]
Standard
513
[rght]
15840
12240
1
720
1080
1
1252
720
2
1
0
1
1
2
1
720
11520
14
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
1
9360
1
10080
[hrght]
[lyfrm]
1
11200
0
0
12240
1252
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1252
12240
1
1440
0
1
360
1440
0
1
0
1
1
0
1
1440
10800
0
[txt]
@Header@
@Header@
>
[frght]
[lyfrm]
1
13248
0
14760
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
360
1
14940
1440
0
1
0
1
1
0
1
1440
10800
0
[txt]
@Header@
@Header@
>
[elay]
[l1]
0
[pg]
4
47 0 50 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
94 0 65 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
141 0 15 0 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
150 0 0 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#284,10800>
<:#284,10800>'Hugh Marlor - 7/18/91
<:#284,10800>'This macro adds to the View Menu the option of a toggle between
<:#284,10800>'the menu bar shipped with AmiPro 2.0 and a short version
<:#284,10800>define IsOKToRun(menuname) GetInfo(217, 24, %1);
<:#284,10800>
<:#284,10800>FUNCTION MENULITE()
<:#284,10800>IF IsNewWave()
<:#284,10800> Message("Macro not available while running under HP NewWave.")
<:#284,10800> Exit Function
<:#284,10800>ENDIF
@Subhead@<:#284,10800>result=IsOKToRun(SaveAs)
@Subhead@<:#284,10800>if result !=1 exit function
@Subhead@<:#284,10800>endif
<:#284,10800>declare Back()
<:#284,10800>declare Toggle()
<:#284,10800>declare OpenFile()
<:#284,10800>
<:#284,10800>AllocGlobalVar("set",1)
<:#284,10800>AllocGlobalVar("NewBar",1)
<:#284,10800>
<:#284,10800>MacFile = GetRunningMacroFile$() 'Get the name of this macro file.
<:#284,10800>
<:#284,10800>ShowBar(1) 'make sure default is displayed
<:#284,10800>DeleteMenuItem(1,"&View","Short &Menus")
<:#284,10800>AddMenuItem(1,"&View","Short &Menus","{MacFile}!ChangeMenu()")
<:#284,10800>
<:#284,10800>END FUNCTION
<:#284,10800>
<:#284,10800>
<:#284,10800>Function ChangeMenu()
<:#284,10800>
<:#284,10800>MacFile = GetRunningMacroFile$() 'Get the name of this macro file.
<:#284,10800>'MacFile = GetRunningMacroFile$() 'Get the name of this macro file.
<:#284,10800>
<:#284,10800>short=GetGlobalVar$("set")
<:#284,10800>
<:#284,10800>if (short=1) 'Then short menu already built
<:#284,10800> Call Toggle()
<:#284,10800> exit function
<:#284,10800>endif
<:#284,10800>
<:#284,10800>BarID=AddBar() 'BarID for Short Menu Bar
<:#284,10800>SetGlobalVar("NewBar",BarID) 'Save BarID for Short Menu
<:#284,10800>
<:#284,10800>IF (BarID <;> 0) 'If it was added,
<:#284,10800> AddMenu(BarID, "&File") 'Add a File menu to it.
<:#284,10800> AddMenuItem(BarID,"&File", "&New<:f240,BArial,255,0,0>...<:f>", New, "Begin a new document")
AddMenuItem(BarID,"&File","&Open<:f240,BArial,255,0,0>... ^O<:f>", "{macfile}!OpenFile()","Open a Document")
<:#284,10800> addmenuitem(BarID,"&File","-","")
<:#284,10800> AddMenuItem(BarID,"&File","&Save ^S",Save,"Save Document")
<:#284,10800> AddMenuItem(BarID,"&File","Save &As...",SaveAs,"Save as new name")
<:#284,10800> AddMenuItem(BarID,"&File","&Revert to Saved",Revert)
<:#284,10800> AddMenuItem(BarID,"&File","-","")
<:#284,10800> AddMenuItem(BarID,"&File","&Print... ^P",FilePrint)
<:#284,10800> AddMenuItem(BarID,"&File","Printer Se&tup...",PrintSetup)
<:#284,10800> addmenuitem(BarID,"&File","-","")
<:#284,10800> AddMenuItem(BarID,"&File","E&xit","{MacFile}!Close_Ami()","Exit AmiPro")
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&Edit")
<:#284,10800> AddMenuItem(BarID,"&Edit","&Undo<:f240,BArial,255,0,0> ^Z<:f>",Undo)
<:#284,10800> AddMenuItem(BarID,"&Edit","Cu&t<:f240,BArial,255,0,0> ^X<:f>",Cut)
<:#284,10800> AddMenuItem(BarID,"&Edit","&Copy<:f240,BArial,255,0,0> ^C<:f>",Copy)
<:#284,10800> AddMenuItem(BarID,"&Edit","&Paste<:f240,BArial,255,0,0> ^V<:f>",Paste)
<:#284,10800> AddMenuItem(BarID,"&Edit","-","")
<:#284,10800> AddMenuItem(BarID,"&Edit","Find && &Replace... ^F",FindReplace)
<:#284,10800> AddMenuItem(BarID,"&Edit","&Go To... ^G",GoToCmd)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&View")
<:#284,10800> AddMenuItem(BarID,"&View","&Full Page<:f240,BArial,255,0,0> ^D<:f>",FullPageView)
<:#284,10800> AddMenuItem(BarID,"&View","&Custom ",CustomView)
<:#284,10800> AddMenuItem(BarID,"&View","-","")
<:#284,10800> AddMenuItem(BarID,"&View","&Layout Mode ",LayoutMode)
<:#284,10800> AddMenuItem(BarID,"&View","&Draft Mode ^M",DraftMode)
<:#284,10800> AddMenuItem(BarID,"&View","-","")
<:#284,10800> AddMenuItem(BarID,"&View","View &Preferences...",ViewPreferences)
<:#284,10800>
<:#284,10800> AddMenuItem(BarID,"&View","Long &Menus","{macfile}!Back")
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&Text")
<:#284,10800> AddMenuItem(BarID,"&Text","&Font...",FontChange)
<:#284,10800> AddMenuItem(BarID,"&Text","-","")
<:#284,10800> AddMenuItem(BarID,"&Text","&Normal ^N",NormalText)
<:#284,10800> AddMenuItem(BarID,"&Text","&Bold ^B",Bold)
<:#284,10800> AddMenuItem(BarID,"&Text","&Italic ^I",Italic)
<:#284,10800> AddMenuItem(BarID,"&Text","&Word Underline ^W",WordUnderline)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&Style")
<:#284,10800> AddMenuItem(BarID,"&Style","&Modify Style... ^A",ModifyStyle)
<:#284,10800> AddMenuItem(BarID,"&Style","-","")
<:#284,10800> AddMenuItem(BarID,"&Style","&Use Another Style Sheet...",UseAnotherStyle)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&Page")
<:#284,10800> AddMenuItem(BarID,"&Page","&Modify Page Layout...",ModifyLayout)
<:#284,10800> AddMenuItem(BarID,"&Page","-","")
<:#284,10800> AddMenuItem(BarID,"&Page","&Page Numbering...",PageNumber)
<:#284,10800> AddMenuItem(BarID,"&Page","&Line Numbering...",LineNumber)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"F&rame")
<:#284,10800> AddMenuItem(BarID,"F&rame","&Create Frame...",AddFrame<:f240,BArial,255,0,0>DLG<:f>)
<:#284,10800> AddMenuItem(BarID,"F&rame","&Modify Frame Layout...",FrameLayout)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"Too&ls")
<:#284,10800> AddMenuItem(BarID,"Too&ls","&Spell Check...",SpellCheck)
<:#284,10800> AddMenuItem(BarID,"Too&ls","Ta&bles...",Tables)
<:#284,10800> AddMenuItem(BarID,"Too&ls","-","")
<:#284,10800> AddMenuItem(BarID,"Too&ls","&Drawing...",DrawingMode)
<:#284,10800> AddMenuItem(BarID,"Too&ls","&Charting...",ChartingMode)
<:#284,10800> AddMenuItem(BarID,"Too&ls","-","")
<:#284,10800> AddMenuItem(BarID,"Too&ls","<:f240,BArial,255,0,0>Smart &Icons...<:f>",<:f240,BArial,255,0,0>IconCustomize<:f>)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&Window")
<:#284,10800> AddMenuItem(BarID,"&Window","&New Window",NewWindow)
<:#284,10800> AddMenuItem(BarID,"&Window","&Tile",TileWindow)
<:#284,10800> AddMenuItem(BarID,"&Window","&Cascade",CascadeWindow)
<:#284,10800>
<:#284,10800> AddMenu(BarID,"&Help")
<:#284,10800> AddMenuItem(barID,"&Help","&<:f240,BArial,255,0,0>Contents<:f>",Help)
<:#284,10800> AddMenuItem(BarID,"&Help","-","")
<:#284,10800> AddMenuItem(BarID,"&Help","&About Ami Pro...",About)
<:#284,10800>
<:#284,10800> ShowBar(BarID) 'Show the newly created menu bar.
<:#284,10800> short = 1 'set flag that you already created shortmenu bar
<:#284,10800> SetGlobalVar("set",short)
<:#284,10800>ENDIF
<:#284,10800>END FUNCTION
<:#284,10800>
<:#284,10800>FUNCTION Close_Ami()
<:#284,10800>
<:#284,10800>AppClose("")
<:#284,10800>
<:#284,10800>END FUNCTION
<:#284,10800>
<:#284,10800>FUNCTION OpenFile()
<:#284,10800>
FileOpen
<:#284,10800>
<:#284,10800>END FUNCTION
<:#284,10800>
<:#284,10800>
<:#284,10800>FUNCTION BACK()
<:#284,10800>ShowBar(1) 'Restore the original Ami Pro menu bar
<:#284,10800>FreeGlobalVar(1)
<:#284,10800>END FUNCTION
<:#284,10800>
<:#284,10800>FUNCTION TOGGLE()
<:#284,10800> BarID=GetGlobalVar$("NewBar") 'Grab BarID from Global Variable
<:#284,10800> ShowBar(2)
<:#284,10800>END FUNCTION
@Y<*">@<:#284,10800>
>
[Embedded]
00009464
>
[macsum] 6
MENULITE 0 0 3 6
ChangeMenu 331 0 4 30
Close_Ami 2968 0 1 127
OpenFile 3005 0 1 133
BACK 3038 0 1 140
TOGGLE 3077 0 2 145
[macse]
14 MENULITE
0 1317
13
11 00000109
0 3 "Macro not available while running under HP NewWave."
6 0
15
9
0 1313 217 24 104
13
8 1
6 1
5 1
18 1
11 00000178
6 0
15
9
0 271 "set" 1
0 271 "NewBar" 1
0 802
13
8 2
0 514 1
0 520 1 "&View" "Short &Menus"
0 516 1 "&View" "Short &Menus" "{2}!ChangeMenu()"
6 0
15
9
14 ChangeMenu
0 802
13
8 1
0 265 "set"
13
8 2
6 2
5 1
18 0
11 00000105
16 Toggle
6 0
15
9
0 513
13
8 3
0 264 "NewBar" "{3}"
6 3
5 0
18 3
11 00002625
0 515 "{3}" "&File"
0 516 "{3}" "&File" "&New..." 101 "Begin a new document"
0 516 "{3}" "&File" "&Open... ^O" "{1}!OpenFile()" "Open a Document"
0 516 "{3}" "&File" "-" ""
0 516 "{3}" "&File" "&Save ^S" 103 "Save Document"
0 516 "{3}" "&File" "Save &As..." 104 "Save as new name"
0 516 "{3}" "&File" "&Revert to Saved" 105
0 516 "{3}" "&File" "-" ""
0 516 "{3}" "&File" "&Print... ^P" 111
0 516 "{3}" "&File" "Printer Se&tup..." 112
0 516 "{3}" "&File" "-" ""
0 516 "{3}" "&File" "E&xit" "{1}!Close_Ami()" "Exit AmiPro"
0 515 "{3}" "&Edit"
0 516 "{3}" "&Edit" "&Undo ^Z" 151
0 516 "{3}" "&Edit" "Cu&t ^X" 153
0 516 "{3}" "&Edit" "&Copy ^C" 154
0 516 "{3}" "&Edit" "&Paste ^V" 155
0 516 "{3}" "&Edit" "-" ""
0 516 "{3}" "&Edit" "Find && &Replace... ^F" 451
0 516 "{3}" "&Edit" "&Go To... ^G" 452
0 515 "{3}" "&View"
0 516 "{3}" "&View" "&Full Page ^D" 201
0 516 "{3}" "&View" "&Custom " 202
0 516 "{3}" "&View" "-" ""
0 516 "{3}" "&View" "&Layout Mode " 210
0 516 "{3}" "&View" "&Draft Mode ^M" 211
0 516 "{3}" "&View" "-" ""
0 516 "{3}" "&View" "View &Preferences..." 206
0 516 "{3}" "&View" "Long &Menus" "{1}!Back"
0 515 "{3}" "&Text"
0 516 "{3}" "&Text" "&Font..." 251
0 516 "{3}" "&Text" "-" ""
0 516 "{3}" "&Text" "&Normal ^N" 253
0 516 "{3}" "&Text" "&Bold ^B" 254
0 516 "{3}" "&Text" "&Italic ^I" 255
0 516 "{3}" "&Text" "&Word Underline ^W" 257
0 515 "{3}" "&Style"
0 516 "{3}" "&Style" "&Modify Style... ^A" 302
0 516 "{3}" "&Style" "-" ""
0 516 "{3}" "&Style" "&Use Another Style Sheet..." 304
0 515 "{3}" "&Page"
0 516 "{3}" "&Page" "&Modify Page Layout..." 352
0 516 "{3}" "&Page" "-" ""
0 516 "{3}" "&Page" "&Page Numbering..." 356
0 516 "{3}" "&Page" "&Line Numbering..." 359
0 515 "{3}" "F&rame"
0 516 "{3}" "F&rame" "&Create Frame..." 414
0 516 "{3}" "F&rame" "&Modify Frame Layout..." 402
0 515 "{3}" "Too&ls"
0 516 "{3}" "Too&ls" "&Spell Check..." 459
0 516 "{3}" "Too&ls" "Ta&bles..." 457
0 516 "{3}" "Too&ls" "-" ""
0 516 "{3}" "Too&ls" "&Drawing..." 411
0 516 "{3}" "Too&ls" "&Charting..." 412
0 516 "{3}" "Too&ls" "-" ""
0 516 "{3}" "Too&ls" "Smart &Icons..." 209
0 515 "{3}" "&Window"
0 516 "{3}" "&Window" "&New Window" 525
0 516 "{3}" "&Window" "&Tile" 526
0 516 "{3}" "&Window" "&Cascade" 527
0 515 "{3}" "&Help"
0 516 "{3}" "&Help" "&Contents" 551
0 516 "{3}" "&Help" "-" ""
0 516 "{3}" "&Help" "&About Ami Pro..." 552
0 514 "{3}"
5 1
8 2
0 264 "set" "{2}"
6 0
15
9
14 Close_Ami
0 1027 ""
6 0
15
9
14 OpenFile
24 102
6 0
15
9
14 BACK
0 514 1
0 266 1
6 0
15
9
14 TOGGLE
0 265 "NewBar"
13
8 1
0 514 2
6 0
15
9
00009489