ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Editors / Code editor
  • Overview
  • How to?
  • How to display events associated with an element?
  • Special case: open the events associated with an element from the code editor
  • Special case: F2 on the name of a plane
  • Tip: Return to last code modified
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
Overview
WINDEV, WEBDEV and WINDEV Mobile allow the use of event-driven and object-oriented programming.
The proposed event-driven programming associates one or more events with each element used. These events are displayed in the code editor.
For many elements:
  • Some events are proposed by default: the most common and used events.
  • Some events can be added. These events allow you to manage specific cases (the drag and drop feature, for example). For more details, see Optional events.
How to?

How to display events associated with an element?

There are several methods to display the events associated with an element (control, window, page, etc.):
  • Use the F2 shortcut. To do so, you must:
    • Select the desired element.
    • Press F2: the code editor is automatically displayed with the list of default associated events.
  • Use the "Code" option in the context menu. To do so, you must:
    • Select the desired element.
    • Right-click to open the context menu and select "Code". The code editor is automatically displayed with the list of default associated events.
Remarks:
  • You can also display the events associated with an element from the element description window: simply click , at the bottom of the description window.
  • To display the events associated with the project, a window, a page or a report, you can also use the open document tabs. Simply:
    • Open the context menu of the desired element.
    • Select "Element code" in the menu that appears. The code editor is automatically displayed with the list of default associated events.

Special case: open the events associated with an element from the code editor

The WLanguage code in the different processes or events can handle specific elements (controls, windows, pages, etc.).
You can directly open the events of an element handled in a line of code by clicking the element and pressing F2.
For example: For the following code:
Open(WIN_Menu)
If F2 is pressed while on "WIN_Menu", the code editor will open the events associated with that window.

Special case: F2 on the name of a plane

If the WLanguage code handles a named plane, you can press F2 while on the name of the plane to open the corresponding window and go to the specified plane.

Tip: Return to last code modified

Often, after writing a line of code, you navigate through the code to check certain elements. And then, you have to go back to that line of code to continue your task.
To return to the initial code, press Ctrl + Alt + Left arrow.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/10/2023

Send a report | Local help