GETTEXTSIZE@

Platform

Win32, x64

Purpose

To get the dimensions of a graphics character string in the associated control.

Syntax

SUBROUTINE GETTEXTSIZE@( HWND, STR, WIDTH, DEPTH )
INTEGER(7) hwnd
CHARACTER*(*) STR
INTEGER WIDTH,DEPTH

Description

This routine returns the pixel WIDTH and DEPTH of a given character string STR when drawn on the control that has the handle HWND. Use this for example with the handle for %`cw or with %lc (Handle of Last Control). Trailing spaces will be included so either use a substring notation or terminate the significant characters by CHAR(0).

If the routine fails then the width and height are returned as zero.

Notes

Introduced with FTN95 8.20.

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited