Dealing with empty groups...

Lynch, Jonathan BNZ2 at CDC.GOV
Tue Dec 28 12:53:57 EST 2004


>Sorry, but I thought you said that the empty group *wasn't* passing the
>mouseUp message to the card:

Indeed, that is what I said - the empty group is not passing the message
- nor will it respond to the message itself. Having an object in there
solves the problem, and causes it to pass the message. 

Having a bottom layer object that automatically returns to the bottom
seems like it would also work - good idea.

Even though I have a couple workable solutions to the problem at hand, I
am interested in understanding the underlying issue, because I can see
other uses for empty and/or nested groups in the future. Are empty
groups supposed to behave differently than non-empty groups? I have also
noticed that with select grouped objects turned on - an empty group can
be selected as if it were an object. (not by clicking, but by using the
pointer tool to select a box that includes the groups edges)

Is this the result of an internal setting of some sort, or just an
accident of RunRev?


-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Ken Ray
Sent: Tuesday, December 28, 2004 12:35 PM
To: Use Revolution List
Subject: Re: Dealing with empty groups...

On 12/28/04 10:57 AM, "Lynch, Jonathan" <BNZ2 at CDC.GOV> wrote:

> The empty group acts as a page. If I have an invisible object across
the
> whole page in there, then when other objects on that page are sent to
> the bottom layer of that page, they will be under the invisible
button.
> I can see that causing various problems.
> 
> As long as the group is not empty - then having a script in the card
> script that says...
> 
> On mouseup
>    If the mouseloc is within the rect of group "Page Content 1" then
>       (do whatever it is that needs to be done when selecting the
page)
>    End if
> End mouseup
> 
> Seems to work fine.

Sorry, but I thought you said that the empty group *wasn't* passing the
mouseUp message to the card:


>> It seems that an empty group will neither accept a mouseup message,
>> nor allow that mouseup message to be passed to the card.

If it *does* pass it to the card, then you've got your solution above.
If
not, the transparent object can be sent to the bottom after you've sent
other objects to the bottom (make it part of your "send to bottom layer"
code), so it remains "bottom-most". However, whatever works for you...

Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution


More information about the use-livecode mailing list