Message Path and Groups Oddity

Ender Nafi Elekcioglu endernafi at gmail.com
Fri Oct 18 02:42:43 EDT 2013


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



More information about the use-livecode mailing list