PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Defining a preset action
  • Note
  • Information displayed in the code editor
  • Running a preset action by programming
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
Programming by preset action
Overview
The programming by preset action allows you to describe a process in a single click, without having to type any code lines, by selecting the action to run in a list.
For example:
Running the click code of button and closing the window
Running the click code of button and closing the window
Initializing a component, the parameters are specified in the interface
Initializing a component, the parameters are specified in the interface
The preset actions are proposed:
  • on the Button controls (in the click process)
  • WINDEVWINDEV Mobile on the menu options.
  • WEBDEV - Server code on the Link controls (in the server click process)
How to proceed?

Defining a preset action

To define a preset action:
  1. Display the description window of control ("Description" from the popup menu).
  2. Select the action to run in the "Action" combo box.
    The most common actions are proposed in this list. To select a more specific action, click the "All the actions" button or the "Other actions" button.
The actions proposed depend on the elements found in the current project (windows, pages, component, procedure, ...).
WINDEVWINDEV Mobile Note: To choose the preset action, you also have the ability to select "Preset action..." from the popup menu of the control.
Note
WINDEVWINDEV Mobile

Information displayed in the code editor

When a preset action is used, an information indicating this preset action is specified in the code editor.
For example:
Preset action in the code
Versions 16 and later
A click on the preset action displayed in the code editor displays the window for selecting preset actions. Therefore, the preset action can be modified from the code editor directly.
New in version 16
A click on the preset action displayed in the code editor displays the window for selecting preset actions. Therefore, the preset action can be modified from the code editor directly.
A click on the preset action displayed in the code editor displays the window for selecting preset actions. Therefore, the preset action can be modified from the code editor directly.
Caution: Any WLanguage code entered in the code editor after the call to the preset action will not be run.
To include a preset action in a WLanguage code, use ExecutePresetAction.
WINDEVAndroidJava

Running a preset action by programming

WINDEV also allows you to run a preset action by using ExecutePresetAction.
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment