Re: PreOpenBackground Messages

2018-09-05 Thread Brian Milby via use-livecode
There is a parameter to tell which group is the target of the message. I didn’t think the group would need to check to see if it was supposed to be the target of the message though. The openBackground dictionary entry doesn’t make that clear. The preOpenBackground dictionary entry does point it

Re: PreOpenBackground Messages

2018-09-05 Thread Bob Sneidar via use-livecode
The alternative would be to send a separate message for every background on a card. It is odd though. Brian, have you tried the target to determine the group you need? Bob S > On Sep 5, 2018, at 13:55 , Mark Wieder via use-livecode > wrote: > > On 09/05/2018 01:45 PM, Brian Milby via use-li

Re: PreOpenBackground Messages

2018-09-05 Thread Mark Wieder via use-livecode
On 09/05/2018 01:45 PM, Brian Milby via use-livecode wrote: Right, but the message for group B is sent to group A. If A doesn’t pass, B never sees it. I see it in the dictionary, but it seems weird. Yeah, that just seems wrong to me. Doesn't seem like there should be a hierarchy for backgroun

Re: PreOpenBackground Messages

2018-09-05 Thread Brian Milby via use-livecode
Right, but the message for group B is sent to group A. If A doesn’t pass, B never sees it. I see it in the dictionary, but it seems weird. The openBackground works the same way, but the dictionary entry there makes it sound like the message is direct. I only read that entry which is why I was c

Re: PreOpenBackground Messages

2018-09-05 Thread Bob Sneidar via use-livecode
Because the background is being opened when the card is loaded. All backgrounds on the card are opened, and therefore pre-opened. Bob S > On Sep 5, 2018, at 13:20 , Brian Milby via use-livecode > wrote: > > Interesting. > > Now that I re-read it, I see the solution. That seems really odd

Re: PreOpenBackground Messages

2018-09-05 Thread Brian Milby via use-livecode
passes it, the message > proceeds through each group in reverse layer order (from highest to > lowest)." > > On 9/5/18 12:23 AM, Brian Milby via use-livecode wrote: > > Quick question about the PreOpenBackground messages... > > > > If you have 2 background groups that bo

Re: PreOpenBackground Messages

2018-09-05 Thread J. Landman Gay via use-livecode
te: Quick question about the PreOpenBackground messages... If you have 2 background groups that both use the same button as their behavior with the following code: on preOpenBackground put the short id of me after msg end preOpenBackground Wouldn't you expect to see the ID of both groups?

Re: PreOpenBackground Messages

2018-09-05 Thread Brian Milby via use-livecode
Same issue with openbackground Thanks, Brian On Sep 5, 2018, 7:17 AM -0500, Paul Dupuis via use-livecode , wrote: > Change you code to: > > put the short id of this me after msg > > >  On 9/5/2018 1:23 AM, Brian Milby via use-livecode wrote: > > Quick question abo

Re: PreOpenBackground Messages

2018-09-05 Thread Brian Milby via use-livecode
Quick question about the PreOpenBackground messages... > > > > If you have 2 background groups that both use the same button as their > > behavior with the following code: > > > > on preOpenBackground > > put the short id of me after msg > > end preOpenBackground

Re: PreOpenBackground Messages

2018-09-05 Thread Paul Dupuis via use-livecode
Change you code to: put the short id of this me after msg  On 9/5/2018 1:23 AM, Brian Milby via use-livecode wrote: > Quick question about the PreOpenBackground messages... > > If you have 2 background groups that both use the same button as their > behavior with the following

PreOpenBackground Messages

2018-09-04 Thread Brian Milby via use-livecode
Quick question about the PreOpenBackground messages... If you have 2 background groups that both use the same button as their behavior with the following code: on preOpenBackground put the short id of me after msg end preOpenBackground Wouldn't you expect to see the ID of both groups