PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..WinEditAllowed is used to find out and modify the operations allowed on a control when the window switches to "Edit by the end user" 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 BinaryAND(MySelf..WinEditAllowed, weSelection) = weSelection THEN
Trace("Selection allowed")
END
Syntax

Finding out the operations allowed on a control Hide the details

<Result> = <Control Name>..WinEditAllowed
<Result>: Integer constant (or combination of constants)
Combination of the following constants:
weAddWireThe end user can add a wire between several controls.
weAddRepositionableNoteThe end user can add a repositionable note into the window.
weChangeTooltipThe end user can modify the tooltips of controls.
weChangeWireThe end user can modify the wires between the controls.
weMoveControlThe end user can move the 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 the controls.
weResizeControlThe end user can resize the controls.
weSelectionThe end user can select the controls.
weSizeThe end user can modify the size of controls.
<Control Name>: Character string (with or without quotes)
Name of control to use.

Defining the operations allowed on a control Hide the details

<Control Name>..WinEditAllowed = <Authorized Operations>
<Control Name>: Character string (with or without quotes)
Name of control to use.
<Authorized Operations>: Integer constant (or combination of constants)
Operations allowed on the control:
weAddWireThe end user can add a wire between several controls.
weAddRepositionableNoteThe end user can add a repositionable note into the window.
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.
weChangeTooltipThe end user can modify the tooltips of controls.
weChangeWireThe end user can modify the wires between the controls.
weMoveControlThe end user can move the 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 the controls.
weResizeControlThe end user can resize the controls.
weSelectionThe end user can select the controls.
weSizeThe end user can modify the size of controls.
weAllThe end user can modify everything in the window.
This option cannot be combined with one of the other options.
Related Examples:
WD Graphic Objects Training (WINDEV): WD Graphic Objects
[ + ] This educational example illustrates the power of WLanguage regarding object-oriented programming.
This example is an editor of graphic objects.

You have the ability to:
- move, resize the objects
- perform selections with the lasso or with the mouse
- cut/copy/paste objects
- delete/duplicate objects
- save the created documents and print them.

The main technical features presented and documented in this example are as follows:
- managing a clipboard of objects
- managing UNDO/REDO
- serializing and deserializing objects
- algorithms for managing graphic objects (proportional resize operations, management of movement 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 required version
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment