how to get the textfont of the clickchunk in an unlocked field ?

Ken Ray kray at sonsothunder.com
Wed Aug 31 14:53:36 EDT 2005


On 8/31/05 9:52 AM, "Langers Christian" <christian.langers at education.lu>
wrote:

> Well I wanted to be able to get the font name to be displayed when
> the user clicks (with MouseButtonNumber 1 !!!)  a word/textchunk in a
> textfield...
> 
> I tried this handler in the textfield :
> 
> on mouseUp
>      put the effective textfont of the clickChunk
> end mouseUp
> 
> but mouseUp/down meassages are not sent to the textfield....

Use "selectionChanged" instead... that should work.

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