ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
diagPoint (Type of variable)
In french: diagPoint
The diagSelection type is used to define all the advanced characteristics of a point in a diagram. The characteristics of this point can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
MyShape is diagPolygon
 
// Set dimensions, position ...
MyShape.Point[1].X = 0
MyShape.Point[1].Y = 0
MyShape.Point[2].X = 25
MyShape.Point[2].Y = 25
MyShape.Point[3].X = 50
MyShape.Point[3].Y = 75
MyShape.Point[4].X = 100
MyShape.Point[4].Y = 20
 
MyShape.X = 50
MyShape.Y = 100
 
MyShape.Width = 350
MyShape.Height = 150
 
MyShape.Open = True
 
// Reference the displayed diagram
MyDiagram is Diagram <- DIAGEDT_MyDiagram
 
// Add the rectangle shape to the diagram
Add(MyDiagram.Shape, MyShape)
Properties

WLanguage properties that can be used with the diagPoint type

The following properties can be used to handle 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.

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

Last update: 05/23/2023

Send a report | Local help