Strange behaviour of set the loc/set the rec (was 2.0 beta Bug?)
tkuypers at pandora.be
tkuypers at pandora.be
Fri Apr 25 07:00:01 EDT 2003
Jan,
That indeed was the problem... After it is placed, the long ID of the group
vMyGroup still refers to the old one...
Tnx, didn't think of that...
Ton
"
> From: Jan Schenkel <janschenkel at yahoo.com>
> Reply-To: use-revolution at lists.runrev.com
> Date: Fri, 25 Apr 2003 03:28:50 -0700 (PDT)
> To: use-revolution at lists.runrev.com
> Subject: Re: Strange behaviour of set the loc/set the rec (was 2.0 beta Bug?)
>
> --- "tkuypers at pandora.be" <tkuypers at pandora.be> wrote:
>> I posted this already yesterday, but I hope somebody
>> can confirm they have
>> the same problem, or (hopefully) give me a
>> solution...
>>
>>
>>
>> Stack 1 has got a group named ?MyGroup?
>> This group has got 1 custom property: pNewLoc
>>
>> Stack 2 has got a button with the script:
>>
>> On mouseUp
>> Put ?MyGroupName? into vMyGroup
>> Copy group vMyGroup of stack ?Stack1? to stack
>> ?Stack2?
>> Close stack ?Stack1?
>> put the pNewLoc of group vMyGroup into vLoc
>> set the loc of group vMyGroup to vLoc
>> End mouseUp
>>
>> The group is placed in stack 2 and stack 1 is
>> closed, no errors, but the
>> position of the group remains unchanged...
>>
>> When I enter the "set the loc..." command from the
>> messagebox it works fine
>> When I enter the "set the loc..." command from a
>> separate button it works
>> fine as well
>>
>> Same problem goes for setting the rect...
>>
>> Any ideas, anybody?
>> I guess this should work, but strangely enough is
>> doesn't...
>>
>> Regards,
>>
>> Ton Kuypers
>>
>
> Hi Ton,
>
> My best guess is that the defaultStack or topStack
> aren't in order yet, so the engine is not quite sure
> which group you're referring to -- if you're unlucky,
> it might even think you're still talking about the
> original one.
>
> You could try this approach instead :
> put the long ID of group "MyGroupName" \
> into vMyGroup
> go stack "Stack 2"
> clone vMyGroup
> -- after clone, 'it' points to the new group
> set the loc of group it to the pNewLoc \
> of group it
>
> Hope this helped,
>
> Jan Schenkel.
>
> =====
> "As we grow older, we grow both wiser and more foolish at the same time." (La
> Rochefoucauld)
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.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