[comp.sys.mac] MenuBar in HyperCard

kleef@cs.vu.nl (Patrick van Kleef) (09/05/87)

Has any of you HyperCard programmers found a way to alter
the HyperCard menubar to a custom menubar providing the
users with programmerd options? If so, please disclose
this feat. I'm stuck!

STORKEL@RICE.BITNET (Scott Storkel) (09/08/87)

Currently, I know of no way to alter the menu bar directly from Hypertalk. It
SHOULD, however, be possible to do this by writing and external command or
function (see discussion of XCMD and XCFN resources). The external code would
have to change the menu bar, handle processing of commands, and return a result
to the Hypertalk script.
     
I'm not sure what kind of ramifications would be involved with disabling the
normal Hypercard menus, so be careful. It would also seem that making a stack
menu driven would be a pain in the neck, if there isn't a way to pass events on
to Hypercard for processing. Example: If you're not in the menu processing
code, then the menu does nothing. If you are, then card buttons get ignored by
your menu routine. I don't have any docs for XCMD's and XCFN's yet, so I'm not
sure if this is a problem or not.
     
Scott Storkel
Rice University Macintosh Software Development Team
(STORKEL@RICE.BITNET)