PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Properties specific to the description of diagConnector variables
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
diagConnector (Type of variable)
In french: diagLien
Warning
From version 27 (77), diagLink is kept for backward compatibility. This function is replaced by diagConnector.
The diagConnector type is used to define all the advanced characteristics of a connector in a diagram. The characteristics of this connector 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
N is int
 
// Create a rectangle shape
MyShape1 is diagRectangle
// Set the dimensions, position and background color
MyShape1.X = 100
MyShape1.Y = 100
MyShape1.Width = 50
MyShape1.Height = 50
MyShape1.Background.Color = PastelRed
 
// Reference the displayed diagram
MyDiagram is Diagram <- DIAGEDT_MyDiagram
 
// Add the rectangle shape to the diagram
N = Add(MyDiagram.Shape, MyShape1)
 
// Create an ellipse
MyShape2 is diagOval
 
// Set the dimensions, position and background color
MyShape2.X = 200
MyShape2.Y = 200
MyShape2.Width = 50
MyShape2.Height = 50
MyShape2.Background.Color = PastelGreen
 
// Add the ellipse to the diagram
Add(MyDiagram.Shape, MyShape2)
 
// Creates a link
MyConnector is diagConnector
Add(MyDiagram.Shape, MyConnector)
 
// Reference added objects
MyShape1 <- MyDiagram.Shape[ N ]
MyShape2 <- MyDiagram.Shape[ N + 1 ]
MyConnector <- MyDiagram.Shape[ N + 2 ]
 
MyConnector.Beginning.ConnectionPoint = MyShape1.ConnectionPoint[1]
MyConnector.Beginning.ConnectionPoint.X = 100
MyConnector.Beginning.ConnectionPoint.Y = 50
 
MyConnector.Ending.ConnectionPoint = MyShape2.ConnectionPoint[1]
MyConnector.Ending.ConnectionPoint.X = 0
MyConnector.Ending.ConnectionPoint.Y = 50
Properties

Properties specific to the description of diagConnector variables

Remark: The diagConnector type inherits from the diagShape type. This means all the properties of the diagShape type are available for the diagConnector type. These properties appear in italics in the list below.
The following properties can be used to handle a connector:
Property nameType usedEffect
New in version 28
ActionAllowed
diagActionAllowed or constant
  • diagActionAllowed variable used to define the actions available to the end user.
  • diagActionNone constant: no action available.
  • diagActionAll constant (Default value): all actions are available.
AngleRealAngle of rotation of the shape (expressed in degrees).
BackgroundBackground color of the shape.
The Color property is used to define the background color of the shape.
This property can correspond to:
  • an RGB color (returned by RGB),
  • an HSL color (returned by HSL),
  • a WLanguage preset color.
  • a variable of type Color. In this case, the opacity specified in the variable is taken into account.
BorderdiagBorderCharacteristics of the shape border.
The available properties are:
  • Color: color of the border.
  • Thickness: Thickness of border.
  • Type: Border type.
CommentCharacter stringNote about the shape. This note is not displayed.
ConnectionPointArray of diagConnectionPointList of connection points of the shape.
EndingdiagHeadTarget end of the connector.
HeightRealHeight of the box that contains the shape before rotation or zoom, expressed in pixels.
NameCharacter stringShape name. This name will be used for searching, for example, if the shape is in a library.
NoteCharacter stringNote associated with the shape.
OpacityIntegerPercentage of opacity of the shape. This value ranges from invisible (0) to completely opaque (100).
RoutingInteger constantType of route taken by the connector:
  • routeStraight: The connector, which goes from the start point to the end point and passes through the waypoints, is a straight line.
  • routeOrthogonal: The connector, which goes from the start point to the end point and passes through the waypoints, has right-angled bends.
ShadowBoolean
  • True if the shape has a shadow,
  • False otherwise.
StartdiagHeadSource end of the connector.
TextdiagTextText (with formatting) inside the shape.
WayPointArray of diagWaypointConnector waypoints.
WidthRealWidth of the box that contains the shape before rotation or zoom, expressed in pixels.
XReal X-coordinate of the box that contains the shape before rotation or zoom, expressed in pixels. This X-coordinate is relative to the parent of the shape.
YReal Y-coordinate of the box that contains the shape before rotation or zoom, expressed in pixels. This Y-coordinate is relative to the parent of the shape.
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment