Re: Fwd: Quantum tunneling in LiveCode

2015-03-05 Thread Robert Brenstein
On 03.03.2015 at 7:31 Uhr -0500 stgoldb...@aol.com apparently wrote: The issue of a background group being in two places at once is not quite clarified. Getting back to the script sequence below, when there is a mouseUp handler in a background group, the message, on clicking on the grouped butt

Re: Quantum tunneling in LiveCode

2015-03-04 Thread Bob Sneidar
I think you meant before. Groups with backgroundBehavior set to true receive the message before the card, if I am not mistaken. Bob S On Mar 2, 2015, at 13:33 , Paul Hibbert mailto:p...@livecode.org>> wrote: Because you set the backgroundBehavior of the "strange group" to true, it's effectiv

Re: Quantum tunneling in LiveCode

2015-03-04 Thread Bob Sneidar
Whoa! This may explain why in another app I was developing I inexplicably got handlers triggering twice. Bob S On Mar 3, 2015, at 11:16 , Peter Haworth mailto:p...@lcsql.com>> wrote: So not only do these messages go down to each child group but they also come back up again! In the above exam

Re: Quantum tunneling in LiveCode

2015-03-04 Thread Bob Sneidar
AHAH! Again, I didn’t know that. I thought sharedBehavior and backgroundBehavior were synonyms. Bob S On Mar 3, 2015, at 09:34 , Michael Doub mailto:miked...@gmail.com>> wrote: To maintain compatibility with HC, the backgroundBehavior was introduced in an attempt to account for those cases w

Re: Quantum tunneling in LiveCode

2015-03-03 Thread Bob Sneidar
May be my mind is too small, but if this is true, then Quantum Mechanics is flawed. But I have to wonder what the quantum definition of “at once” is. :-) Bob S On Mar 2, 2015, at 13:07 , stgoldb...@aol.com wrote: In quantum mechanics something can be in more than one

Re: Fwd: Quantum tunneling in LiveCode

2015-03-03 Thread Peter Haworth
While on the subject of out-of-the-normal message paths, I came across another one a couple of months ago. openControl messages are sent to the highest level group and then DOWN to any of it's child groups which seems the opposite of the normal message direction. It gets more interesting though.

Re: Quantum tunneling in LiveCode

2015-03-03 Thread Paul Hibbert
> > On Mar 3, 2015, at 7:13 AM, Richard Gaskin wrote: > > So all that said, we might consider what you're seeing to be a bug. I think another big issue here is the lack of up-to-date documentation, and this helps to illustrate the depth of this problem. According to the dictionary 'sharedBeha

Re: Fwd: Quantum tunneling in LiveCode

2015-03-03 Thread J. Landman Gay
On 3/3/2015 9:13 AM, Richard Gaskin wrote: The backgroundBehavior property is a tricky thing, I think of it like this: A message to an object will always go to the object's owner group(s) first, if any. After that it hits the card and follows the normal hierarchy. -- Jacqueline Landman Gay

Re: Fwd: Quantum tunneling in LiveCode

2015-03-03 Thread Michael Doub
Richard, Very nice explanation of this. I always wondered about the relationship between this properties. Thanks, Mike On 3/3/15 10:13 AM, Richard Gaskin wrote: Stephen Goldberg wrote: > I think the bottom line is to be cautious about putting mouseUp > scripts in background groups, or t

Re: Fwd: Quantum tunneling in LiveCode

2015-03-03 Thread Peter Haworth
Thanks for that explanation Richard. I finally get the difference between sharedBehavior and backgroundBehavior. Seems like sharedBehavior is the one to use for everything except old HC stacks. On Tue, Mar 3, 2015, 7:14 AM Richard Gaskin wrote: > Stephen Goldberg wrote: > > > I think the bottom

Re: Fwd: Quantum tunneling in LiveCode

2015-03-03 Thread Richard Gaskin
Stephen Goldberg wrote: > I think the bottom line is to be cautious about putting mouseUp > scripts in background groups, or to put a disclaimer in the group > at the beginning of the group handler the line (as mentioned in > the User Manual (pg 131, 5.3.9): > > if the owner of the target is not

Fwd: Quantum tunneling in LiveCode

2015-03-03 Thread stgoldb...@aol.com
, Mar 2, 2015 4:07 pm Subject: Quantum tunneling in LiveCode In quantum mechanics something can be in more than one place at once. A paradox of sorts seems to occur in the message chain with groups in LiveCode. Try this: 1. Place a button on a card. 2. Make the

RE: Quantum tunneling in LiveCode

2015-03-02 Thread Ralph DiMola
essage- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of stgoldb...@aol.com Sent: Monday, March 02, 2015 4:07 PM To: use-livecode@lists.runrev.com Subject: Quantum tunneling in LiveCode In quantum mechanics something can be in more than one place at once. A paradox of

Re: Quantum tunneling in LiveCode

2015-03-02 Thread Paul Hibbert
kground group is like a >> HC backGround, and is higher in the hierarchy (sorry, Jacque) than a card. >> >> >> Craig >> >> >> >> -Original Message- >> From: Paul Hibbert >> To: How to use LiveCode >> Sent: Mon, Mar 2, 2015 4:

Re: Quantum tunneling in LiveCode

2015-03-02 Thread Peter Haworth
ike a > HC backGround, and is higher in the hierarchy (sorry, Jacque) than a card. > > > Craig > > > > -Original Message- > From: Paul Hibbert > To: How to use LiveCode > Sent: Mon, Mar 2, 2015 4:34 pm > Subject: Re: Quantum tunneling in LiveCode > >

Re: Quantum tunneling in LiveCode

2015-03-02 Thread dunbarx
: Re: Quantum tunneling in LiveCode Because you set the backgroundBehavior of the "strange group" to true, it's effectively after the card in the message path. There's a good explanation and diagram in chapter 5.2.3 (p.127-9) of the user guide. HTH Paul > On Mar 2, 20

Re: Quantum tunneling in LiveCode

2015-03-02 Thread Paul Hibbert
Because you set the backgroundBehavior of the "strange group" to true, it's effectively after the card in the message path. There's a good explanation and diagram in chapter 5.2.3 (p.127-9) of the user guide. HTH Paul > On Mar 2, 2015, at 1:07 PM, stgoldb...@aol.com wrote: > > In quantum mec

Quantum tunneling in LiveCode

2015-03-02 Thread stgoldb...@aol.com
In quantum mechanics something can be in more than one place at once. A paradox of sorts seems to occur in the message chain with groups in LiveCode. Try this: 1. Place a button on a card. 2. Make the button a group. Set the group's backgroundBehavior to true. 3. Place the following script