Stack menus

Peter Haworth pete at lcsql.com
Wed May 29 14:38:34 EDT 2013


Hi Paul,
I think we're talking about different things here, probably because I
didn't explain very well!

You're referring to menus used as menu bars, I think and yes I've seen this
issues you mentioned when creating those.  I remember the issue of having
to use a group script to handle mouseUp because they didn;t trigger in the
button scripts.  In fact, I think it was worse than that because there was
something different about how that worked on Widnows and Macs (not sure
about Linux).  I can't remember for sure but I think it was something to do
with using "the target" to figure out which menu the mouseUp came from.

My situation though is when you use a stack as the contents of a menu
button by naming the stack in the menuName property.  I'm using that
feature because I want to have icons in my menu items as opposed to simple
text.  I'm not concerned about the mouseUp issue, just taking it as another
little LC oddity but I wish I could find a way to get round the background
color issue.

Pete
lcSQL Software <http://www.lcsql.com>


On Tue, May 28, 2013 at 8:33 PM, Paul Hibbert <paulhibbert at mac.com> wrote:

>
> On 2013-05-28, at 6:57 PM, Peter Haworth wrote:
>
> > Putting together a stack menu for the first time and finding a couple of
> > issues.
> >
> > The menu object is a pulldown menu with its menuName set to the stack I
> > want displayed.  The stack menu displays fine but a couple of.
> >
> > When the mouse rolls over one of the stack  menu options, it's background
> > becomes a very dark blue color.  Looking for guidance on how to fix that
> > since I've tried the obvious color settings to no avail.  Maybe some
> other
> > property needs (un)setting?
>
> You can set the 'Hilite' colour for the MenuBar group to whatever colour
> you prefer, unfortunately the default is dark blue and not the user's
> system highlight colour. However, if you check the 'Set as stack menubar'
> in the menu builder AFAIK it will then use the system highlight colour and
> take on the same appearance of the system menus on Win and use the system
> menubar on Mac.
>
> > The other issue seems to a difference in how the message path works when
> I
> > click on a button in the stack menu.  I have a mouseUp handler in each
> > stack menu button which calls a handler I have at the card level.  In
> > debug, I see the mouseUp handler executing but even though it executes
> the
> > call to the card hanlder, the card level handler never executes.
>
> > I've worked round it by putting the mouseUp handler at the card level,
> > arguably a better solution anyway but curious about this behavior.
>
> It seems that mouseUp handlers don't work if the menuPick message is used
> in a pulldown menu script, from what I can see you can have one or the
> other, so your workaround may be the best option.
>
> Paul
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list