ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram Editor functions / Types of variables
  • WLanguage properties that can be used with the diagPoint type
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
diagPoint (Variable type)
In french: diagPoint
The diagSelection type is used to define all the advanced characteristics of a point in a diagram. You can define and change the characteristics of this point using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MaForme is diagPolygon

// Définit les dimensions, la position ...
MaForme.Point[1].X = 0
MaForme.Point[1].Y = 0
MaForme.Point[2].X = 25
MaForme.Point[2].Y = 25
MaForme.Point[3].X = 50
MaForme.Point[3].Y = 75
MaForme.Point[4].X = 100
MaForme.Point[4].Y = 20

MaForme.X = 50
MaForme.Y = 100

MaForme.Width = 350
MaForme.Height = 150

MaForme.Open = True

// Obtient une référence sur le diagramme affiché
MonDiagramme is Diagram <- EDIAG_MonDiagramme

// Ajoute la forme rectangle dans le diagramme
Add(MonDiagramme.Shape, MaForme)
Properties

WLanguage properties that can be used with the diagPoint type

The following properties can be used to define the characteristics of diagPoint variables:
Property nameEffect
XX-coordinate of the point, expressed in pixels.
XPercentX-coordinate of the point, expressed as a percentage.
YY-coordinate of the point, expressed in pixels.
YPercentY-coordinate of the point, expressed as a percentage.

Note: The initial value of a point is (0,0).
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help