ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Diagram editor functions / Types of variables
  • Properties specific to diagActionAllowed 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
diagActionAllowed (Type of variable)
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. The characteristics of these rights can be defined and changed using different WLanguage properties.
Caution: This type of variable can only be used with diagShape variables:
Remark: 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: 05/22/2023

Send a report | Local help