Livecode Wiki
Advertisement

Used with the textStyle property to indicate italicized text.Syntax:

italic

Examples:

set the textStyle of button "Check It" to italic

Use the italic keyword to emphasize text by presenting it in italics.

You can italicize an object (which italicizes all the text displayed by the object) or a chunk in a field or button.

To add italics to an object without removing other styles (such as bold), add the italic keyword to the end of the textStyle. The following example adds italic to the styles of a button :

   if the textStyle of button 1 is empty then
   set the textStyle of button 1 to "italic"
   else
   set the textStyle of button 1 to \
   (the textStyle of button 1) & comma & "italic"
   end if


See also: textStyle (property),

Advertisement