Applying a style to text in development
Emmanuel Companys
mcompanys at mac.com
Sat Jun 7 11:23:01 EDT 2003
Le samedi, 7 juin 2003, 18:30 Europe/Paris, Dar Scott a crit :
> I just noticed I'm doing the same thing over and over.
>
> I'm select a word (or several) in a field. I change the font. I
> change the color. I set it bold.
>
> And then I go on to the next one. Is there a faster way?
Why not havea script triggered by the enter key, such as
on enterInField
get the selectedtext of me
set textfont of it to <font name>
set textcolor of it to <color name or the corresponding of 3 digits>
set textstyle of it to "bold"
end enterInField
(To be put int the script of the field you want to modify)
Manuel
More information about the use-livecode
mailing list