PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Case of optional events
  • Case of events that expect parameters
  • Using the MySelf keyword
  • Exiting from the sequence of procedures
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 Process property is used to modify the processes to be executed by the events available on a control, window, page, report, etc.
Several types of operations are available:
  • The '=' operator deletes all the processes and procedures attached to the event and replaces them with the specified procedure.
  • The '+=' operator adds the specified procedure after the initial process and after the procedures added beforehand.
  • The Before and After properties are used to manage the procedures to be executed more precisely.
  • To exit from the sequence of procedures, use SetFocusAndReturnToUserInput.
Example
// Specify the process to run on a click
BTN_BUTTON1.Process[trtClick] = myProcedure1
 
// Add a procedure to run on a click
BTN_BUTTON1.Process[trtClick] += myProcedure2
 
// Add a procedure to run before the click process
BTN_BUTTON1.Process[trtClick].Before += myProcedure3
Syntax
<Element>.Process [<Type of process>] = <Procedure name>
<Element>: Character string
Name of the element to be used:
  • Name of control or name of Control variable to use.
  • Name of the page to be used.
  • Name of the window to be used.
  • Name of the report to be used.
<Type of process>: Integer constant
Process to use:
trtActionAction code of Web Component control.
WINDEVUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
New in version 27
trtAddDiagShape
Code for adding a shape in a Diagram Editor control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtAddTokenCode for adding a token into a "Text token" edit control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtAddWidgetCode for adding a widget to a Dashboard control.
Universal Windows 10 AppiPhone/iPadIOS WidgetJava This constant is not available.
trtAfterOpeningDocument"After opening document" code of Word Processing control, Image Editor control, Spreadsheet control or PDF Reader control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtBeforeClosingDocument"Before closing document" code of Word Processing control, Image Editor control, Spreadsheet control or PDF Reader control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtBeforeClosingWindow"Allow closing" code.
WEBDEV - Server codeAndroidAndroid Widget IOS WidgetJava This constant is not available.
trtBeforeCreatingOrganizerApt"Before creating the appointment" code of the Organizer control.
Universal Windows 10 AppAndroid Widget Java This constant is not available.
trtBeforeCreatingScheduleApt"Before creating the appointment" code of Scheduler control.
Universal Windows 10 AppAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtChange
  • "Whenever modified" code of control.
  • Modification code of the window.
New in version 27
trtChangeDiagShape
Code for changing a shape in a Diagram Editor control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtChangeLayout"Change of layout" code of a window.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtChangeOrganizerPeriod"Whenever changing period" code of Organizer control.
Universal Windows 10 AppAndroid Widget Java This constant is not available.
trtChangePlane"Whenever changing plane" code of a Sliding Banner control.
WINDEVUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtChangePositionMap"Whenever changing position" code of Map control.
AndroidAndroid Widget Java This constant is not available.
trtChangeSchedulePeriod"Whenever changing period" code of Scheduler control.
Universal Windows 10 AppAndroid Widget Java This constant is not available.
trtClick
  • Click code of control.
  • Code of the button associated with the click in the window.
trtClickButtonArrowClick code on the arrow associated with a button.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget Java This constant is not available.
trtClickHTMLLink"Click on a link" code of an HTML Display control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtClickTokenClick code on a token in a "Text token" edit control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtClosing
  • Closing code of the window.
  • Closing code of the page.
  • Closing code of report.
trtCollapseExpandBranchCollapsed/Expanded code of a node in a TreeView or TreeView Table control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtCollapseExpandBreakCollapsed/Expanded code of a break in a Looper or Table control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget Java This constant is not available.
trtComboClosingClosing code of drop-down list.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtComboOpeningCode for opening the drop-down list of Combo Box control.
WEBDEV - Server codeiPhone/iPadIOS Widget This constant is not available.
trtDelayedPlaneLoad"Delayed plane load" code of a plane.
WINDEVUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
New in version 27
trtDeleteDiagShape
Code for deleting a shape in a Diagram Editor control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtDeleteOrganizerAptCode for deleting an appointment from an Organizer control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtDeleteScheduleAptCode for deleting an appointment from a Scheduler control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtDeleteTokenCode for deleting a token from a "Text token" edit control.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtDeleteWidgetCode for deleting a widget from a Dashboard control.
Universal Windows 10 AppiPhone/iPadIOS WidgetJava This constant is not available.
trtDisplayPopupMenuOptional code for displaying the popup menu.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget Java This constant is not available.
trtDoubleClick
  • Double-click code.
  • Code of button associated with the double click in the window.
Universal Windows 10 App This constant is not available.
trtEndChange"End of modification" code (Slider and Scrollbar control only).
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtEndInitialization"End of initialization" code (browsing List Box, Table and Combo Box control).
trtEndLoadingHTMLPage"After loading the HTML page" code of an HTML Display control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtEnterEntry code in the control.
trtEnterInputOrganizerAptEntry code in input for an appointment in an Organizer control.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtEnterInputSchedulerAptEntry code in input for an appointment in a Scheduler control.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtEnterRolloverOptional entry code in rollover in a Table control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtExitExit code of control.
trtExitRolloverMouse leave code in a Table control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtFilterCode for filtering the report data.
trtGetFocusCode of focus gain for the window.
Universal Windows 10 App This constant is not available.
trtHorizontalScroll"Horizontal scrollbar" code (Scrollbar control only).
trtInit
  • Initialization code of control.
  • Initialization code of the window.
  • Initialization code of the page.
  • Opening code of report.
trtKeyDownKey Down code.
trtKeyPressedKey Pressed code.
trtKeyUpKey Up code.
trtKillFocusCode of focus loss for the window.
Universal Windows 10 App This constant is not available.
trtLeftButtonDoubleClickCode of double click on left button.
trtLeftButtonDownCode of left button down.
trtLeftButtonUpCode of left button up.
trtLineDisplayCode used to display a row (Table control only).

Universal Windows 10 App This constant is not available.
trtLineEnterEntry code of a row (Table control only).
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtLineExitExit code of row (Table control only).
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtLoadingHTMLResource"Load resources" code of an HTML Editor or HTML Display control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtMenuOptionCode of menu option (main or popup menu).
iPhone/iPadIOS Widget This constant is not available.
trtMiddleButtonDoubleClickCode of double click on middle button.
trtMiddleButtonDownCode of middle button down.
trtMiddleButtonUpCode of middle button up.
trtModificationColumnFilterCode "Whenever modifying the filter (user input in header)" of a Table Column control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtModificationSpreadsheetCell"Cell modification" code of Spreadsheet control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtMouseWheelCode for using the mouse wheel.
New in version 27
trtMoveDiagShape
Code for moving a shape in a Diagram Editor control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtMoveOrganizerAptCode for moving an appointment in an Organizer control.
Universal Windows 10 AppAndroid Widget Java This constant is not available.
trtMoveScheduleAptCode for moving an appointment in a Scheduler control.
Universal Windows 10 AppAndroid Widget Java This constant is not available.
trtMoveWidget"Moving a widget" code of Dashboard control.
Universal Windows 10 AppiPhone/iPadIOS WidgetJava This constant is not available.
trtMoveWindowCode for moving the window.
WEBDEV - Server codeAndroidAndroid Widget Java This constant is not available.
trtOpening
  • Initialization code of the window.
  • Opening code of the page.
  • Opening code of report.
trtOrganizerInputExitAptExit code from input for an appoingment in an Organizer control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtPostPrint"Post Print" code of a block in a report.
trtPrePrint"Pre Print" code of control in a report.
trtPullToRefresh"Pull to refresh" code in a Table or Looper control.
WEBDEV - Server codeJava This constant is not available.
trtReadDataCode for reading the report data.
trtReadFirstCode for reading the first record (Table control only).
Universal Windows 10 App This constant is not available.
trtReadLastCode for reading the last record (Table control only).
Universal Windows 10 App This constant is not available.
trtReadNextCode for reading the next record (Table control only).
Universal Windows 10 App This constant is not available.
trtReadPreviousCode for reading the previous record (Table control only).
Universal Windows 10 App This constant is not available.
trtReassignResourceScheduleAptCode for re-assigning an appointment in a Scheduler control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtRequestRefresh"Request for refreshing the display" code (window and internal window).
WEBDEV - Server codeAndroid Widget Java This constant is not available.
trtResizeCode for resizing the window.
Universal Windows 10 App This constant is not available.
New in version 27
trtResizeDiagShape
Code for resizing a shape in a Diagram Editor control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtResizeOrganizerAptCode for resizing an appointment in an Organizer control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtResizeScheduleAptCode for resizing an appointment in a Scheduler control.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtResizeWidget"Resizing a widget" code of Dashboard control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtRightButtonDoubleClickCode of double click on right button.
trtRightButtonDownCode of right button down.
trtRightButtonUpCode of right button up.
trtRightClick
  • Right-click code (for the TreeView control only).
  • Code of button associated with the right click in the window.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtRightClickHTMLLink"Right click on a link" code of an HTML Display control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtRolloverRollover code of control.
trtScheduleInputExitAptExit code from input for an appoingment in a Scheduler control.
Universal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
New in version 27
trtSelectDiagShape
Code for selecting a shape in a Diagram Editor control.
Universal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtSelectionSelection code (Combo Box, List Box and Table control).
trtSelectOrganizerAptCode for selecting an appointment in an Organizer control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtSelectOrganizerPeriodCode for selecting a period in an Organizer control.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtSelectScheduleAptCode for selecting an appointment in a Scheduler control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtSelectSchedulePeriodCode for selecting a period in a Scheduler control.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtSliderChange"Whenever modified" code (Slider control only).
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtSpinMinusDecrement code of Spin control.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtSpinPlusIncrement code of Spin control.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPadIOS Widget This constant is not available.
trtStartLoadingHTMLPage"Before loading the HTML page" code of an HTML Display control.
WEBDEV - Server codeUniversal Windows 10 AppAndroid Widget Java This constant is not available.
trtSystemButton"Before closing with OK/Close button" code.
trtSystemKeyDownSystem Key Down code.
AndroidAndroid Widget Java This constant is not available.
trtSystemKeyPressedSystem Key Pressed code.
AndroidAndroid Widget Java This constant is not available.
trtSystemKeyUpSystem Key Up code.
AndroidAndroid Widget Java This constant is not available.
trtUpdateUI"Request for refreshing the display" code (window and internal window).
WEBDEV - Server codeAndroidAndroid Widget Java This constant is not available.
trtValueAssignmentCode for assigning the Value property of Web Component control.
WINDEVUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtVerticalScroll"Vertical scrollbar" code (Scrollbar control only).
trtWinEdChangeSizeCode run when resizing a control in "Edit by the user" mode. This process is mainly used to identify the operation performed by the user and to run a specific code.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtWinEdMoveCode run when moving a control in "Edit by the user" mode. This process is mainly used to identify the operation performed by the user and to run a specific code.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtWinEdSelectionCode run when selecting a control in "Edit by the user" mode. This process is mainly used to identify the operation performed by the user and to run a specific code.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trtZoomModificationCode for modifying the zoom of a Range Slider control.
WEBDEV - Server codeUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
trValueRetrievalCode for retrieving the Value property of a Web Component control.
WINDEVUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadIOS WidgetJava This constant is not available.
<Procedure>: Name of WLanguage procedure
Name of WLanguage procedure or method to run.
Caution: all you have to do is specify the name of the procedure (without brackets).
Remarks

Case of optional events

If the event modified by the Process property is an optional event of the control (window or page), this event is automatically created: there is no need to add this event in the code editor.

Case of events that expect parameters

Some events use parameters (e.g., events of Organizer or Scheduler controls). The procedure defined by the Process property must not expect more parameters than the associated event (however, it can expect less parameters).

Using the MySelf keyword

If the MySelf keyword is used in a procedure called by the Process property, it will correspond to the control that executes the procedure.

Exiting from the sequence of procedures

If several procedures are sequenced, the sequence of procedures can be interrupted from the code of one of the procedures by using SetFocusAndReturnToUserInput.
Example:
// Click on BTN_Button1
BTN_Button1.Process[trtClick] += MyProc1
BTN_Button1.Process[trtClick] += MyProc2
// Click on BTN_Button1
Trace("Click on Button 1")
PROCÉDURE MyProc1()
Trace(dbgInfo(dbgProcess))
SetFocusAndReturnToUserInput(MySelf.Name)
PROCÉDURE MyProc2()
Trace(dbgInfo(dbgProcess))
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment