PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Font variable
  • Limits
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Orientation (Property)
In french: Angle
The Property Angle allows to:
  • Find out the angle (in degrees) of a Font variable.
  • Modify the angle (in degrees) of a Font variable.
Remark: The angle is calculated counterclockwise from an horizontal line (trigonometric direction).
Example
// Define the characteristics of a Font variable
Font1 is Font
Font1.Name = "Arial"
Font1.Size = 14
Font1.Orientation = 45
// Apply the font to "MyControl"
MyControl.Font = Font1
Syntax

Finding out the angle of a Font variable Hide the details

<Result> = <Font name>.Angle
<Result>: Integer
Angle (in degrees) of the specified Font variable.
<Font name>: Font
Name of the Font variable to use.

Modifying the angle of a Font variable Hide the details

<Font name>.Angle = <New angle>
<Font name>: Font
Name of the Font variable to use.
<New angle>: Integer
New angle (in degrees) for the specified Font variable.
Remarks

Font variable

A font can be created from a Font variable.
To define the font characteristics, use:
This font can be used:

Limits

When assigning a font to a field in a window, the Property Orientation is not taken into account.. Therefore, if MyFont has the following characteristics:
  • Size 12
  • Arial
  • Angle 45
Only the first two characteristics will be taken into account when the assignment is performed:
MyControl.Font = MyFont
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment