Toggle Listbehavior

Brian Yennie briany at qldlearning.com
Tue Apr 5 00:04:26 EDT 2005


Sivakatirswami,

I think what you are finding is that these properties are only "linked" 
by means of the Rev IDE. They are in fact totally independent, it's 
just that the IDE emulates certain types of "canned" objects by 
sometimes locking multiple properties together.

As such, your workaround is actually the proper use, I believe.

- Brian

> I want to toggle the listbehavior of a fld with a simple check btn:
>
> on mouseUp
>   set the listbehavior of fld "ToDo" to the hilite of me
> end mouseUp
>
> problem: it works to set listbehavior to true but
>
> unchecking leaves "orphaned to true props" :
>
> locktext  ## remains set to true
> dontwrap  ## remains set to true
>
> is this a bug? If setting listbehavior to true turns these properties 
> on, then should they not be turned off if they were not on in the 
> first place? The following is of course a simple work around, but I 
> was thinking perhaps there was an issue with setting listbehavior to 
> false. Or is this expected behavior...
>
> on mouseUp
>   put "locktext,dontwrap,listbehavior" into tProps
>   repeat for each item x in tProps
>       set the x of fld "ToDo" to the hilite of me
>   end repeat
> end mouseUp
>
> Sivakatirswami
>
> _______________________________________________
> 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