Irregular-Shaped Fields

Scott Rossi scott at tactilemedia.com
Sun Dec 13 00:38:58 EST 2009


Keep in mind the term "rect" refers to a rectangular region. There is  
no built-in way to do what you want. When you say "user entered" do  
you mean after the text is entered, or dynamically as it is being  
typed? You might be able to fit text to a shape using the  
formattedRect property of text, but IIRC this will only work on text  
already in a field (you can't get the formattedRect of text in a  
variable for example). If you lock the screen and rewrap the text line- 
by-line, you might get acceptable performance.

Hope this helps.

Regards,

Scott Rossi
Creative Director
Tactile Media, Mutimedia & Design



On Dec 12, 2009, at 2:55 PM, Edward D Lavieri Jr <edljr at mac.com> wrote:

> Hi,
>
> Is it possible for user-entered text to be auto-fitted into a non- 
> square/rectangle text field? This code does not give me an error,  
> nor does it result in any change.
> Code:
> set the rect of fld "triangle1" to the rect of grc "triangle1"
> Even ensuring the polygon only has three points did not do the trick
>
> Any help would be appreciated.
>
> Thanks,
> Ed
>
>



More information about the Use-livecode mailing list