Identifying text attributes
Ken Ray
kray at sonsothunder.com
Mon Dec 27 01:10:21 EST 2004
On 12/26/04 9:57 PM, "D.Rothe" <drothe at optusnet.com.au> wrote:
> How to identify text attributes?
> Is it possible to identify the style attributes of a selected word in a field,
> like in most word processors, when you hilite some text the font name, size &
> style is shown in a menu? This would be on the user side not edit.
Yes, you can get the textFont, textSize, textStyle, etc. of the
selectedChunk. Check the entry for "textStyle" in the docs to find out how
to handle multiple text styles in the selection...
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