- Style of a control: Setting the font size unit in the editor
- Font variable
SizeUnit (Property) In french: UnitéTaille
Not available
The SizeUnit property gets and sets the size unit of a font defined with a variable of type Font.
p is Font p.Name = "Arial" p.SizeUnit = unitPoint p.Size = 12
Syntax <Result>: Integer constant Unit used:
| | unitPixel | Pixel (CSS). | unitPoint | Point. | unitWPoint | WINDEV point (unit used in previous versions). |
<Font>: Font variable Name of the Font variable to be used. <Font>: Font variable Name of the Font variable to be used. <New unit>: Integer constant Unit to be used:
| | unitPixel | CSS pixels will be used. | unitPoint | Points will be used. | unitWPoint | WINDEV points will be used (unit used in previous versions). |
Remarks Style of a control: Setting the font size unit in the editor You can define the font used for the different elements of the control in the "Style" tab of the control description window. You can set the unit to be used in the font size settings in the editor.
Font variable A font can be created from a Font variable. To define the font characteristics, use: - the FontCreate function.
- the Charset, Orientation, StrikeOut, Color, Bold, Italic, CharacterSpacing, LineSpacing, Name, Underline, Size and SizeUnit properties.
This font can be used:
This page is also available for…
|
|
|
|