home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 February
/
PCWK0297.iso
/
lotus
/
english
/
lotus031.dsk
/
MENU.LSS
< prev
next >
Wrap
Text File
|
1995-07-19
|
683b
|
23 lines
' Create a new top level menu item
MenuName = "&New Menu"
Item1 = "&First Menu Item..."
Item2 = "&Second Menu Item..."
With .ApplicationWindow.lwpMenuBar
' Delete the menu - prevents duplicates
.deleteitem MenuName
.newitem MenuName, "",0,"&Help" ' add a menu before &Help
End With
Set mymenu=.applicationwindow.lwpmenubar.items.item(MenuName) ' set menu object
mymenu.newitem Item1,"!HitMenu",, ' add item to menu
mymenu.newitem Item2,"!HitMenu",, ' add item to menu
Sub HitMenu
' This routine is called when a menuitem is selected
' Press Ctrl+PageUp to navigate available functions and subs
Messagebox "hit the menu"