Lock screen and 'Go card' not working

Eric Chatonet eric.chatonet at sosmartsoftware.com
Thu Apr 5 08:56:17 EDT 2007


Hi Ian,

Unfortunately, you can't select an object that is onto another card.
And I ended with weird results when executing something like: group  
<obj of cd 1> and <another obj of cd 1> while I am on card 2:
The group was created but appeared on cd 2 and was removed from cd 1:  
curious...

On the other hand:
As you know it: lock and unlock screen go by pairs.
So have you tried to lock the screen twice or three times and unlock  
it until the lock screen = false?
Really dirty but worth a try ;-)
You can also add in some places: put the lockscreen & cr after msg to  
understand which statement makes the lock screen reset to false...

Best regards from Paris,
Eric Chatonet.

Le 5 avr. 07 à 14:12, Ian McKnight a écrit :

> Hi Eric
>
> Thanks for the suggestions. I have just made the master group visible
> on my card 1 and removed the statement to make it visible from the
> script but it is still occurring. Script debug mode is off and I am
> seeing the entire script execute - so the lock screen command is not
> locking because the very next line is go card and that's what I see.
>
>
> I also tried staying on card 2 and doing it remotely, and when I
> remove the go card 1 command I get this error:
>
> Chunk: can't select object that isn't open
> Object	TTmaster
> Line	select grp "masterColumnGrp" of cd "timeTable" of this stack
> Hint	cloneGroup
>
>
> Here is a more detailed outline of what the script does when called  
> from card 2:
>
> lock screen
> go card 1 (cd "timetable")
>
> check for a pre-existing table group
> if there is one delete it
>
> clone the hidden master group, make it visible, rename the clone,
> rename its fields
> fill it with the days of the week
> position the new group
>
> repeat for the number of columns required
>   clone the hidden master group, make it visible, rename the clone,
> rename its fields
>   fill one field with the column number
>   position the new group
> end repeat
>
> select all groups on the card
> group them
> rename this 'super-group'
>
> go card 2
> unlock screen
>
>
> Thanks fo
> On 05/04/07, Eric Chatonet <eric.chatonet at sosmartsoftware.com> wrote:
>> Hi Ian,
>>
>> I suspect that unlock screen automatically occurs when you set the
>> visible of an object to true.
>> Could you return to cd 2 before setting the visibility for all these
>> objects?
>> Or, better, do all the job from cd 2: clone grp "Master" of cd 1, set
>> the name of last grp of cd 1 to <name>, etc.
>> Hope this helps.
>>
>> Best regards from Paris,
>> Eric Chatonet.
>>
>
>
> -- 
> Regards
>
> Ian

----------------------------------------------------------------
http://www.sosmartsoftware.com/
eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the use-livecode mailing list