[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Intuition' (#aros)

IntuiTextLength

Return the length (pixel-width) of an IntuiText.

Declaration

Source position: intuition.pas line 3242

function IntuiTextLength(

  iText: PIntuiText

):LongInt;

Arguments

iText

  

A pointer to an instance of an IntuiText structure

Function result

The width of the text in pixels.

Description

This routine accepts a pointer to an instance of an IntuiText structure, and returns the length (the pixel-width) of the string which that instance of the structure represents.

Note: if the Font pointer of your IntuiText structure is set to nil, you'll get the pixel-width of your text in terms of the current system default font. You may wish to be sure that the field IText^.ITextFont for 'default font' text is equal to the Font field of the screen it is being measured for.

See also

OpenScreen

  

Open an Intuition screen


Documentation generated on: 2017-01-10