You can't do this (nor can you do it in HyperCard). You'll have to
create the menu the "old fashioned" way: create a stack with buttons
for the menu items, and make the separators by creating buttons with
their showBorder property set to true that are resized to be 4 pixels
tall using the "Lay Out Menu" button in the Layout Tools dialog.
But we're considering adding something like this for the 2.0 release.
It would also be nice to have the ability to set the mnemonic used for
automatically created menu items. The most difficult part is settling
on a syntax. For example, in some GUI resource files, you put an '&'
before the character that you want to be the mnemonic. This works,
although it's pretty ugly. A similar character (e.g. '-') at the
start of a line could make that line into a separator. This system
could even be extended to add support for radio and toggle buttons,
where the first character would be a type and the second used to get
and set the hilite of the button.
Any suggestions for the syntax of features like this?
Scott
> Thanks in advance,
> Larry Cole
-- *********************************************************************** * Scott Raney 303-447-3936 Remember: the better you look, * * raney@metacard.com the more you'll see -- Lidia * ***********************************************************************