On 15/2/00 10:47 pm, Richard Gaskin <[EMAIL PROTECTED]> wrote:
> I just searched the MC 2.3 Read Me for "popup", and couldn't find the answer
> there so I'm here:
>
> Is there a way to use a text list of menu item names instead of a stack for
> the popup command? Any other command/function to accomodate this?
>
> I have an app in which I'd like to add a lot of support for right-click
> menus, but I'd much rather do it in code than actually build a stack for
> every context.
>
> Ideally I'm looking for something like this:
>
> on mouseDown
> put "Item 1"&cr&"item 2"&cr&"Item 3" into tMenuItems
> get PopupFunction(tMenuItems, the mouseLoc)
> DoSomethingWith it
> end mouseDown
>
> or if a command, it could look like this:
>
> popup tMenuItems, the mouseLoc
> get it
>
> Any suggestions?
This is not supported. You'll need to build a stack that can take a list of
menu items and display them. We built such a stack a while ago, which
supports setting the items using a script, and also scrolling. Check out:
http://www.xworlds.com/metacard/files/Popup%20panel.sit
Instructions are included as far as I remember.
> If it turns out that I must build a stack for this, how do you folks handle
> the resizing of all of the items within it to make it compliant with the
> appearance guidelines for each platform?
Change the font of the stack and hack the scripts to resize the objects
would probably be your best bet.
Regards,
Kevin
Kevin Miller <[EMAIL PROTECTED]> <http://www.xworlds.com/>
Cross Worlds Computing, MetaCard Distributors, Custom Development.
Tel: +44 (0)131 672 2909. Fax: +44 (0)1639 830 707.
This is the MetaCard mailing list.
Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm