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 diagShape variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The diagShape type is used to define all the advanced characteristics of the original shape used in a diagram.
ATTENTION :
  • A variable of type diagShape should not be assigned directly, and cannot be directly added to a diagram. Only the types that derive from this type of variable can be assigned or added to a diagram:
  • diagShape variables are used to handle the types of shapes, in particular arrays of shapes.
Example
// Iterate over the shapes in a diagram
ShapeName is string
diagControl is Diagram <- DIAGEDT_DIAG

FOR EACH ShapeInDiagram OF diagControl.Shape
	ShapeName = ShapeInDiagram.Name // Gets the name of the shape
END
Properties

Properties specific to diagShape variables

The following properties can be used to handle an original shape:
Property nameType usedEffect
ActionAlloweddiagActionAllowed or constant
  • diagActionAllowed variable used to define the changes the user can make to the shape.
  • constant diagActionNo: no action will be allowed on the form.
  • Constant diagActionToute (default value): all possible actions will be allowed on the shape.
AngleRealAngle of rotation of the shape (in degrees).
BackgroundConstant, integer or ColorBackground 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: border color.
  • Thickness: edge thickness.
  • Type: type of border.
CommentCharacter stringNote about the shape. This note is not displayed.
ConnectionPointArray of diagConnectionPointList of connection points of the shape.
New in version 2025
Extra
VariantAllows you to store advanced information without affecting the execution of the application. You can store values of any type (array, etc.). It is also possible to add members to the Extra property.
Example:
MyVariable.Extra.Info1 = Value
MyVariable.Extra[Info2] = Value2
MyVariable.Extra.Date = DateSys()
HeightRealHeight of the box that contains the shape before rotation or zoom, expressed in pixels.
Name Character 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).
ShadowBoolean
  • True if the shape has a shadow,
  • False otherwise.
TextdiagTextText (with formatting) inside the shape.
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

Last update: 09/30/2024

Send a report | Local help