Bob,
I do what you're talking about all the time. Here's my setObjectHeightToText
command that I use (pass it the long id of the field, and the minimum height
you want):
on setObjectHeightToText lID,minH
put the rect of lID into tRect
put item 2 of tRect + the formattedHeight of lID into
I have a field on one of my apps whose width needs to change depending on
content, but there is a minimum and a maximum width aspect, so that an empty
field doesn’t appear like a weird tiny rectangle or stretch to overlap other
objects.
I use something like:
if the formattedWidth of field x <
There is also a measureText() function that might help.
Devin
> On Oct 24, 2020, at 4:35 AM, Klaus major-k via use-livecode
> wrote:
>
> Hi Richmond,
>
>> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode
>> :
>>
>> Over in the Forums someone has asked a question about measuring the
Hi Richmond,
> Am 24.10.2020 um 12:17 schrieb Richmond via use-livecode
> :
>
> Over in the Forums someone has asked a question about measuring the length of
> text lines.
> Of course one can count characters, but in most alphabetic systems different
> characters have different lengths.
> Is t