home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!mcsun!sunic!news.lth.se!pollux.lu.se!syo.lu.se!loa
- From: loa@syo.lu.se (Lars-Olof Albertson)
- Subject: Re: Menu Question
- Message-ID: <1993Jan5.200700.11162@pollux.lu.se>
- Sender: news@pollux.lu.se (Owner of news files)
- Nntp-Posting-Host: kinetics-47.ldc.lu.se
- Organization: Lund University
- References: <01050023.mrqcsj@sable.cars.com>
- Date: Tue, 5 Jan 1993 20:07:00 GMT
- Lines: 33
-
- In article <01050023.mrqcsj@sable.cars.com> shawn@cars.com (Shawn
- Connelly) writes:
- > There's an undocumented feature with menuMessage's though. You cannot
- > have any more than 20 menuMessages. For this reason, I always trap
- > and use on doMenu. Yes, I have mile-long if0then-else statements, but
- > maybe this could be solved with a 'case' statement in the next version
- > of HC, not to mention the restirction previously mentioned.
-
- My reason for using domenuhandler instead of menuMessage is that I often
- use menus which the user can build. The menuitems ar stored in a field
- and loaded into a global at openstack or closefield. The domenu handler
- looks like this
-
- on domenu what
- global gmenuitems
- if what & return is in gmenuitems then
- put what into field fo
- exit domenu
- end if
- pass domenu
- end domenu
-
- If you want you can also have a menuitem which can put new menuitems into
- the textfield.In one application the user can do a slection and then
- by a menu command create a new field and store the selection in the field.
- The names of the textfields are the menuitems in the users menu. When she
- or he need the text again it is only to mark the field and take the manu command.
-
- Of course, you can put lots of menuitmens into a menu. I think by 30 - 35
- items you should consider to use Rinaldis listSelect instead.
-
- Regards
- Lars-Olof Albertson
-