textHeightSum

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the textHeightSum of <object>
textHeightSum(<object>)
Summary

Returns the total height of the text in a field or button.

Introduced1.0
OSios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
object

A field, button, card, or group.

Example
the textHeightSum of field "Comments"
if the textHeightSum of group 1 > the height of this card then expandCd
Values
NameTypeDescription
return

The textHeightSum returns a positive integer.

RelatedKeyword: button, integer, field, card
Property: formattedWidth, textHeight, formattedHeight, pixels, pageHeights
Command: group
Object: field, button
Glossary: object, property, return
Control Structure: function
Description

Use the textHeightSum function to determine how much vertical space a field's or button's text requires.

This function exists for compatibility with imported SuperCard projects. You can use the formattedHeight property to find the height of the text in a field or button.

If the object is a button or field, the textHeightSum returns the number of vertical pixels needed to display all the text at the field's current width. If the object is a card or group, the textHeightSum returns the number of vertical pixels needed to display all the objects in the card or group.

Tagsui