|
|
|
|
|
- Font
- Using the drawing functions
dTextHeight (Function) In french: dTexteHauteur Info("The height of the text 'Hello' is: " + dTextHeight(MyImage, "Hello"))
Syntax
<Result> = dTextHeight([<Image>, ] <Text> [, <Maximum width> [, <& character support>]])
<Result>: Integer Text height, expressed in pixels. <Image>: Optional control name or optional Image, WDPic or picLayer variable <Text>: Character string Text whose height must be calculated. This text can be:- a string (without formatting marks such as TAB, CR, etc.),
- a numeric.
<Maximum width>: Optional integer Maximum text width, expressed in pixels. If this parameter is not specified or is set to -1, there will be o width limit. <& character support>: Optional boolean - True (default value) if the "&" character must not be interpreted as an underline operator.
- False if the "&" character must be interpreted as an underline operator. In this case, the character after "&" will be underlined.
Remarks Font By default: - The font used is "MS Sans Serif" (size 13).
- The writing direction is horizontal (from left to right).
- The coordinates of the upper-left corner of the image are (0,0).
- The "&" character is not interpreted.
To change these parameters, use dFont.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|