home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!swrinde!gatech!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!news.lth.se!pollux.lu.se!syo.lu.se!loa
- From: loa@syo.lu.se (Lars-Olof Albertson)
- Newsgroups: comp.sys.mac.hypercard
- Subject: Re: Menu Question
- Message-ID: <1992Dec30.190027.7195@pollux.lu.se>
- Date: 30 Dec 92 19:00:27 GMT
- References: <92365.115447IO10702@MAINE.MAINE.EDU>
- Sender: news@pollux.lu.se (Owner of news files)
- Organization: Lund University
- Lines: 35
- Nntp-Posting-Host: kinetics-28.ldc.lu.se
-
- In article <92365.115447IO10702@MAINE.MAINE.EDU> IO10702@MAINE.MAINE.EDU
- (Merv) writes:
- > I have made my own menus in the menubar and I was wondering
- > how to enable them.
- > ie when the user chooses one, how do I make it do something,,,,
- > I don't have the development pack. If I did, I probably could
- > answer my own question.
- > Thanks.
- > -Merv
- Hello
- you have to write a "domenu" handler
- on domenu What
- if what = "your menuitem" then
- your commands
- exit domenu
- end if
- if what = "Your next menuitem" then
- your commands
- exit domenu
- end if
- pass domenu
- end domenu
-
- It is important that you have a pass domenu at end of the handler
- If you don't have one you can't use any other menu.
-
- it is also possible to use menuMessage when you create the menu, but
- I think that domenu is easier if you do it for the first time.
-
- Try to find a stack with a menu and look at the scripts. It is a useful
- way of learning.
-
- Regards and a Happy New Year
- Lars-Olof Albertson
- loa@syo.lu.se
-