When me is not me

Mike Bonner bonnmike at gmail.com
Fri Mar 9 21:03:52 EST 2018


Nevermind. Another card. DOH

On Fri, Mar 9, 2018 at 6:59 PM, Mike Bonner <bonnmike at gmail.com> wrote:

> What version?  Its working for me in 9 dp11 by using either dispatch or
> send to the group.
>
> In the group:
> command doit pbtn
>    set the hilitedbutton of me to pbtn
> end doit
>
> And from the message box..
>
> send ("doit" && 2) to group 1
> or
> dispatch "doit" to group 1 with 3
>
>
> On Fri, Mar 9, 2018 at 6:23 PM, Peter Bogdanoff via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
>> I learned something today.
>>
>> I was trying by script to set the hilite of a radio button in a group on
>> another card.
>>
>> My script is in the group “Language Choice” which is called by openStack.
>> I’m thinking that “me” would operate on the group:
>>
>>         set the hilitedButton of me to tNum
>>
>> Didn’t work, even though the script received the message and completed.
>> The radio buttons were unchanged. I modified it to this, which worked:
>>
>>         set the hilitedButton of group "Language Choice" of card
>> "Settings" to tNum
>>
>>
>> I can only think that, a group, even though it is on a single card and
>> does not have its backgroundBehavior set to true, must be referred to
>> explicitly by the name of the group and the name of the card is resides in.
>> Or maybe it’s because the individual buttons didn't have sharedHilite set
>> to true.
>>
>> Peter Bogdanoff
>> ArtsInteractive
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>



More information about the use-livecode mailing list