Message Path and Groups Oddity

Phil Davis revdev at pdslabs.net
Fri Oct 18 02:57:43 EDT 2013


I don't know if it will make THE difference but you could try:

_on mouseDown
___hide group "frontGroup" of this card
___pass mouseDown   <---- add this line
  _end mouseDown

I'm thinking maybe the mouseUp isn't sent if there was no mouseDown 
before it.

Best -
Phil Davis


On 10/17/13 11:42 PM, Ender Nafi Elekcioglu 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

-- 
Phil Davis





More information about the use-livecode mailing list