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
  • Properties specific to diagEnd variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
diagHead (Variable type)
In french: diagExtrémité
The diagHead type is used to define all the advanced characteristics of an end of a connector in a diagram. You can define and change the characteristics of this end 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
// Crée une liaison entre rect1 et rect2
rect1 is diagRectangle
rect2 is diagRectangle
Lien is diagConnector

Lien.Beginning.ConnectionPoint = rect1.ConnectionPoint(100, 50) 
Lien.Beginning.Drawing = shapeNone
Lien.Ending.ConnectionPoint = rect2.ConnectionPoint(0, 50) 
Lien.Beginning.Drawing = shapeTriangle
Properties

Properties specific to diagEnd variables

The following properties can be used to handle the end of a connector:
Property nameType usedEffect
ConnectionPointdiagConnectionPointPoint the connector will snap to.
DrawingInteger constantArrow drawing:
  • shapeNo: End has no particular shape.
  • shapeSquare end is a square.
  • shapeRoundedSquare End is a rounded square.
  • shapeArrow The end is an arrow.
  • shapeLosange End is a rhombus.
  • shapeRound end is round.
  • formTriangle end is a triangle.
SnapModeInteger constantHow the connector will snap to the target shape:
  • linkDestinationAuto The position of the end of the link is determined automatically according to the position of the link and the shape.
  • linkDestinationForm The position of the end of the link is in the middle of the shape.
  • linkDestinationPointDAttache The position of the end of the link corresponds to an attachment point.
  • linkDestinationEnglobeRectangle The position of the end of the link corresponds to a point on the rectangle enclosing the shape.
XRealX-coordinate of the end in the diagram.
YRealY-coordinate of the end in the diagram.
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