Message Path and Groups Oddity
J. Landman Gay
jacque at hyperactivesw.com
Fri Oct 18 10:31:35 EDT 2013
If the original object is no longer visible when the mouse goes up, no mouseUp is sent. Instead a mouseRelease is sent. Change the mouseUp handler to mouseRelease and it should work.
Ender Nafi Elekcioglu <endernafi at gmail.com> wrote:
>Hi all,
>
>I have a simple stack.
>One card, two groups.
>Each group has several sample controls {a couple of empty buttons and
>labels}
>and each group's rect is same as the card's rect.
>One in the background and one in the foreground.
>
>This is the only code embedded and it's in the stack's script:
>
>_on mouseDown
>___hide group "frontGroup" of this card
>_end mouseDown
>
>_on mouseUp
>___show group "frontGroup" of this card
>_end mouseUp
>
>As you can guess, that doesn't work.
>On first mouseDown group disappears but releasing the mouse {following
>mouseUp} doesn't show the group.
>It requires a second click.
>
>
>This works:
>
>_on mouseDown
>___disable group "backGroup" of this card
>___hide group "frontGroup" of this card
>_end mouseDown
>
>_on mouseUp
>___show group "frontGroup" of this card
>___enable group "backGroup" of this card
>_end mouseUp
>
>
>Does anyone have any idea why?
>
>Btw, I cannot disable the backGroup, I need it.
>The backGroup isn't actually a backgroundGroup, I mean its
>*backgroundBehaviour* isn't checked;
>it'll be different across the cards on the actual app.
>
>Why does it block the message path?
>
>
>Thanks for any help
>
>
>~ Ender Nafi
>_______________________________________________
>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
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list