Irregular-Shaped Fields

Edward D Lavieri Jr edljr at mac.com
Sun Dec 13 01:02:20 EST 2009


Thanks, Scott.

I will experiment with the formattedRect property. It is frustrating  
because I just finished a large project, just to have this requirement  
thrown in at the last minute. If it was not challenging, it would not  
be any fun.

Thanks again,
Ed


On Dec 12, 2009, at 11:38 PM, Scott Rossi wrote:

> 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
>>
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list