Version 6.3.8 for Windows
 —  Dialog Component Reference  —

TEXT-GET-EXTENT Action

This document covers the following topics:


Description

Returns the size of a text if a certain font is chosen. You can use this action, for example, to find out the best font that still has an acceptable width and height.

Top of page

Parameters

Name/Data Type Explanation
HANDLE OF FONT Input

Specifies a Font Control.

Text (A253) Input

Your text.

Width (I4) Output

Width in pixels.

Height (I4) Output

Height in pixels.

Response (I4) Output

Natural error (if applicable).

Example:

 
   /*Check the size a font will require 
   #TEXT := 'Check the size' 
   PROCESS GUI ACTION TEXT-GET-EXTENT WITH FONT-HANDLE #TEXT #WIDTH #HEIGHT 
   GIVING #RESPONSE

Top of page