Return the length (pixel-width) of an IntuiText.
Source position: intuition.pas line 3857
function IntuiTextLength( |
const IText: PIntuiText |
):LongInt; |
IText |
|
A pointer to an instance of an IntuiText structure |
The width of the text in pixels.
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.
|
Open an Intuition screen |