home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / hypercar / 4713 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.8 KB  |  46 lines

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