Scrolling List Field

Ken Ray kray at sonsothunder.com
Mon Aug 14 22:56:22 EDT 2006


On 8/14/06 8:59 PM, "Mark Smith" <mark at maseurope.net> wrote:

> You can set the textFont property of a line in a field:

Yes, actually you can set the text properties (font, size, style, etc.) of
any chunk of text in a field, as well as for the field itself, a group that
it's in, the card, the stack, etc. There's a hierarchy that gets used to
determine what to display in a field:

If the textFont of the text of the field is empty, then use the textFont of
the field itself. If *that* is empty, use the textFont of the group that
it's in (if any). If *that* is empty, use the textFont of the card, and if
*that* is empty, use the textFont of the stack. (And if even *that* is
empty, use a default font.)

So if the textFont of a field is "Helvetica", and you select a chunk of text
in the field and set it to "Tahoma", then select the field again and change
the textFont of the field to "Lucida Grande" then all the text in the field
that was displaying in Helvetica shifts to Lucida Grande, but the text you
selected and set to Tahoma remains in Tahoma.

Hope this is as clear as mud... ;-)


Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com




More information about the use-livecode mailing list