Re: OpenControl

2014-08-06 Thread hh
jacque wrote: There are some geniuses here on this list who know far more than I do, especially in niche areas where I have either no experience or no skills. Certainly there are some geniuses here, probably I know most (I read this year's archives last week). But there are also some who

Re: OpenControl

2014-08-05 Thread J. Landman Gay
On 8/4/2014, 10:24 PM, Sri wrote: Hi Jacque: Wilstrand's method seems to work (with a little modification). In the following, oldCardID is a custom property of the group. The first focusOut is issued on closeCard. on focusOut local tID put the ID of this card into tID if tID is not

Re: OpenControl

2014-08-05 Thread J. Landman Gay
On 8/4/2014, 10:48 PM, hh wrote: Your words are more than landmarks I'm very flattered, but I think you give me too much credit. There are some geniuses here on this list who know far more than I do, especially in niche areas where I have either no experience or no skills. You'll see who

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/3/2014, 4:03 PM, Mats Wilstrand wrote: I assume you're using a background grp. If so I have used the focusOut message to fire some action in the self-contained grp when the card changes. The focusIn message is not received by the group on crad change. This is kind of counter intuitive imho

Re: OpenControl

2014-08-04 Thread hh
From your answer I understand now what's the point. You have a (shared) backgroundGroup that should go on some or all cards and you wish to change some properties of the group or its members depending on the card you wish to go to. Right? For this situation I use the following. We have one

Re: OpenControl

2014-08-04 Thread Sri
Will this work? 1. Create an invisible button in your group named, say, Card Change. 2. On openControl, Set the script of the current card to add in the on closeCard handler the statement: send mouseUp to button Card Change of group myGroup 3. When the button received the mouseUp message on

Re: OpenControl

2014-08-04 Thread Peter Haworth
On Mon, Aug 4, 2014 at 6:11 AM, hh h...@livecode.org wrote: Do all changes in a preOpenCard handler in the group's script. I believe the original post stated that no openxxx or preopenxxx handlers could be used. Pete lcSQL Software http://www.lcsql.com Home of lcStackBrowser

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 12:37 PM, Peter Haworth wrote: On Mon, Aug 4, 2014 at 6:11 AM, hh h...@livecode.org wrote: Do all changes in a preOpenCard handler in the group's script. I believe the original post stated that no openxxx or preopenxxx handlers could be used. Right. Due to this particular

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 11:46 AM, Sri wrote: Will this work? 1. Create an invisible button in your group named, say, Card Change. 2. On openControl, Set the script of the current card to add in the on closeCard handler the statement: send mouseUp to button Card Change of group myGroup 3. When the button

Re: OpenControl

2014-08-04 Thread Paul Hibbert
Jacque stated; The group needs to be self-contained with no additional scripting anywhere else in the stack. But by putting a preOpenCard (or openCard) handler in the *Group's script* does mean that the group is still self contained. I was curious, so I tried a quick experiment and this does

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 1:22 PM, Paul Hibbert wrote: But by putting a preOpenCard (or openCard) handler in the*Group's script* does mean that the group is still self contained. I was curious, so I tried a quick experiment and this does appear to work. Not too sure if it would solve Jacque's problem, but

Re: OpenControl

2014-08-04 Thread hh
Grande Dame Jacque, Jacque wrote ...The system is already too large and the messaging too complex to tinker with at this late stage ... Just let me add the following for all who reads this later on and are now a bit frustrated because we have learned a lot in this discussion. And just now

Re: OpenControl

2014-08-04 Thread hh
Paul wrote: I'd expect this just to work for user events, system events bypass controls and groups. YES it works. You know I'm now nearly experienced (3/2 years with LC). But this was *very* soon for me one of the finest things in LC (and could even enhanced by using 'behavior'): Using the

Re: OpenControl

2014-08-04 Thread J. Landman Gay
On 8/4/2014, 2:20 PM, hh wrote: Please be cautious with your direct or indirect rating: Apologies if it sounded like I was giving a rating. Your method, and the others, will work fine for most stacks. I only meant that in this particular case, it won't. I have a suite of hundreds of stacks

Re: OpenControl

2014-08-04 Thread Sri
Hi Jacque: Wilstrand's method seems to work (with a little modification). In the following, oldCardID is a custom property of the group. The first focusOut is issued on closeCard. on focusOut local tID put the ID of this card into tID if tID is not the oldCardID of me then set the

Re: OpenControl

2014-08-04 Thread hh
This explains a lot and solves the situation perfectly. But I didn't want you to apologize. This was one of the first things I noticed in this community, what you say is heard and has immense weight (even if it is sometimes 4.2% incorrect). There are impressive landmarks here (or in forum), to

Re: OpenControl

2014-08-03 Thread Mark Schonewille
Hi, Include a front script in your group and add a preOpenCard handler to that front script. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker

Re: OpenControl

2014-08-03 Thread Richmond
On 03/08/14 22:30, J. Landman Gay wrote: I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack. The preOpenControl and openControl messages are only

Re: OpenControl

2014-08-03 Thread Richmond
On 03/08/14 22:56, Richmond wrote: On 03/08/14 22:30, J. Landman Gay wrote: I want to create a shared group that resets its content every time it's displayed on a different card. The group needs to be self-contained with no additional scripting anywhere else in the stack. The preOpenControl

RE: OpenControl

2014-08-03 Thread Mats Wilstrand
Hi Jaque. I assume you're using a background grp. If so I have used the focusOut message to fire some action in the self-contained grp when the card changes. The focusIn message is not received by the group on crad change. This is kind of counter intuitive imho but it works. All the best Mats