PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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.
  • WEBDEV - Server codeWEBDEV - Browser code The "Server" and "Browser" events related to the selected element are displayed in the code editor. For more details, see Server code/Browser code.

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: if in the following code:
Open(WIN_Menu)
the F2 key is used on "WIN_Menu", the code editor will open the events associated with it.

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