Unit 'intuition' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

IntuiTextLength

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

Declaration

Source position: intuition.pas line 3857

function IntuiTextLength(

  const 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: 2021-07-30