ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
The WinEditAllowed property is used to determine and configure the actions allowed on a control when the window switches to "Allow end users to modify the UI" mode.
Example
// Allows the size and position to be modified in the window
// except for the OK button
WIN_MyWindow.WinEditMode = weSelection + wePosition + weSize
BTN_OK.WinEditAllowed = weNone
WinEdActive(WIN_MyWindow, True)
// Check the authorizations
IF BitwiseAND(MySelf.WinEditAllowed, weSelection) = weSelection THEN
Trace("Selection allowed")
END
Syntax

Finding out the operations allowed on a control Hide the details

<Result> = <Control used>.WinEditAllowed
<Result>: Integer constant (or combination of constants)
Combination of the following constants:
weAddRepositionableNoteThe end user can add a repositionable note in the window.
weAddWireThe end user can add a wire between several controls.
weChangeTooltipThe end user can modify the tooltips of the controls.
weChangeWireThe end user can modify the wires between the controls.
weMoveControlThe end user can move controls.
weMultiSelectionThe end user can select several controls at the same time.
Caution: This constant requires the use of the weSelection constant.
wePositionThe end user can move controls.
weResizeControlThe end user can resize the controls.
weSelectionThe end user can select controls.
weSizeThe end user can resize controls.
<Control used>: Control name
Name of the control to be used.

Defining the operations allowed on a control Hide the details

<Control used>.WinEditAllowed = <Authorized operations>
<Control used>: Control name
Name of the control to be used.
<Authorized operations>: Integer constant (or combination of constants)
Operations allowed on the control:
weAddRepositionableNoteThe end user can add a repositionable note in the window.
weAddWireThe end user can add a wire between several controls.
weAllThe end user can modify everything in the window.
This option cannot be combined with one of the other options.
weChangeTooltipThe end user can modify the tooltips of the controls.
weChangeWireThe end user can modify the wires between the controls.
weMoveControlThe end user can move controls.
weMultiSelectionThe end user can select several controls at the same time.
Caution: This constant requires the use of the weSelection constant.
weNoneThe end user cannot modify or select anything in the window. This option is the default option.
This option cannot be combined with one of the other options.
wePositionThe end user can move controls.
weResizeControlThe end user can resize the controls.
weSelectionThe end user can select controls.
weSizeThe end user can resize controls.
Related Examples:
WD Graphic Objects Training (WINDEV): WD Graphic Objects
[ + ] This example illustrates the power of WLanguage in object oriented programming.
This example is a graphic object editor.

It is possible to:
- move, resize objects
- make selections with a lasso or a mouse
- cut/copy/paste objects
- delete/duplicate objects
- save the created documents and print them.

The main technical features presented and documented are:
- management of an object clipboard
- UNDO/REDO management
- serialization and deserialization of objects
- algorithms for managing graphic objects (proportional resizing, management of move rules, etc...)
WD Interactive Application Training (WINDEV): WD Interactive Application
[ + ] This example explains how to use the WinEdXXX functions in an interactive application.
This application is used to mange a connected house (switch the lights on, find out the temperature).

The WinEdXXX functions are used to move the controls on the house map, while proposing advanced features such as the backup of modifications, the cancelation, ...
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/03/2024

Send a report | Local help