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 diagActionAllowed variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
diagActionAllowed (Variable type)
In french: diagActionAutorisée
The diagActionAuthorized type is used to define the actions available to end users on a diagram shape in the Diagram Editor control. You can define and change the characteristics of these rights using different WLanguage properties.
Warning: This type of variable can only be used on variables derived from the diagShape type:
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Define rights on a shape of type Image
background is diagImage
background.Image = "background.png"
background.ActionAllowed.Move = False
background.ActionAllowed.Resize = False
background.ActionAllowed.Rotate = False
x is Diagram <- DIAGEDT_NoName1
x.Shape.Add(background)
Properties

Properties specific to diagActionAllowed variables

The following properties can be used to determine which actions are available on a shape:
Property nameType usedEffect
ZOrderBoolean
  • True to allow changing the Z-order of the shape,
  • False otherwise.
ChangeAspectRatioBooleanIf the Resize property is set to True:
  • True to allow changing the height and width of the shape independently,
  • False otherwise.
ConnectionPointBoolean
  • True to allow changing the connection points of a shape (connectors only),
  • False otherwise.
CopyBoolean
  • True to allow copying and duplicating a shape,
  • False otherwise.
EditLabelBoolean
  • True to allow editing the label of a shape,
  • False otherwise.
EditStyleBoolean
  • True to allow changing the style of a shape (color, border, font, etc.),
  • False otherwise.
MoveBoolean
  • True to allow moving a shape,
  • False otherwise.
RemoveBoolean
  • True to allow removing a shape,
  • False otherwise.
ResizeBoolean
  • True to allow resizing a shape,
  • False otherwise.
RotateBoolean
  • True to allow rotating a shape,
  • False otherwise.
SelectBoolean
  • True to allow selecting a shape,
  • False otherwise.
WayPointBoolean
  • True to allow changing, adding and removing connection points from a shape (connectors only),
  • False otherwise.
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help