the texstyle of the clickline

Björnke von Gierke bvg at mac.com
Wed Sep 8 15:49:52 EDT 2004


maybe this is what you need?

if the textstyle of the clickline contains "bold" is false then
   set the textstyle of the clickline to "bold"
else
   set the textstyle of the clickline to "plain"
end if

On Sep 08 2004, at 18:56, doupsy at wanadoo.fr wrote:

> Hello,
>
> I have a card with a locked field and many lines of text inside.
> The script of this field is :
>
> on mouseup
>     if the textstyle of the clickline is "plain" then set the 
> textstyle of the clickline to "bold" else set the textstyle of the 
> clickline to "plain"
> end mouseup
>
>
> I used this script under Hypertalk with no problem.
>
> Under Revolution, this script don't work correctly.
>
> When the textstyle is "plain", I saw than sometimes the textstyle of 
> the clickline can be "plain" and sometimes can be empty.
> With others textstyles (bold, italic, underline, etc...) there is no 
> problem.
>
> I rectified this script like this :
>
> on mouseup
>   if (the textstyle of the clickline is "plain" or the textstyle of 
> the clickline is empty) then ......
> end mouseup
>
> Is there a better solution ?
>
> Thanks
>
> Leo
>
> _______________________________________________
> 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