PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • Case of optional processes
  • Case of processes expecting 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..Process is used to modify the processes that must be run by the events available on a control, window, page, report, etc.
Several types of operations are available:
  • The '=' operator deletes all the processes and all the procedures attached to the event and replaces them by the specified procedure.
  • The '+=' operator adds the specified procedure after the initial process and after the procedures added beforehand.
  • ..Before and ..After are used to manage the procedures to run more precisely.
  • To exit from the sequence of procedures, use ReturnToCapture.
Versions 20 and later
iPhone/iPad This property is now available for the Table controls in the iPhone/iPad applications.
New in version 20
iPhone/iPad This property is now available for the Table controls in the iPhone/iPad applications.
iPhone/iPad This property is now available for the Table controls in the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Versions 24 and later
Android Widget This property is now available in Android Widget mode.
Android This property is now available for the Android applications.
Java This property is now available for the Java applications.
New in version 24
Android Widget This property is now available in Android Widget mode.
Android This property is now available for the Android applications.
Java This property is now available for the Java applications.
Android Widget This property is now available in Android Widget mode.
Android This property is now available for the Android applications.
Java This property is now available for the Java applications.
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 element to use:
  • Name of control or name of Control variable to use.
  • Name of page to use.
  • Name of window to use.
  • Name of report to use.
<Type of process>: Integer constant
Process to use:
Versions 22 and later
trtAction
New in version 22
trtAction
trtAction
Action code of Web Component control.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trtValueAssignment
New in version 22
trtValueAssignment
trtValueAssignment
Code for assigning the Value property of Web Component control.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtLineDisplayCode used to display a row (Table control only).

iPhone/iPadUniversal Windows 10 App This constant is not available.
Universal Windows 10 App This constant is not available.
trtDisplayPopupMenuOptional code for displaying the popup menu.
WEBDEV - Server codeAndroidAndroid Widget Universal Windows 10 AppJava This constant is not available.
Versions 24 and later
trtAddToken
New in version 24
trtAddToken
trtAddToken
Code for adding a token into a "Text token" edit control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtAddWidget
New in version 20
trtAddWidget
trtAddWidget
Code for adding a widget to a Dashboard control.
iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtPostPrint"Post Print" code of a block in a report.
Versions 23 and later
trtAfterOpeningDocument
New in version 23
trtAfterOpeningDocument
trtAfterOpeningDocument
"After opening document" code of Word Processing control, Image Editor control, Spreadsheet control or PDF Reader control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtBeforeCreatingOrganizerApt"Before creating the appointment" code of Organizer control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Windows MobileUniversal Windows 10 App This constant is not available.
Android Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtBeforeCreatingScheduleApt"Before creating the appointment" code of Scheduler control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Android Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 23 and later
trtBeforeClosingDocument
New in version 23
trtBeforeClosingDocument
trtBeforeClosingDocument
"Before closing document" code of Word Processing control, Image Editor control, Spreadsheet control or PDF Reader control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtPrePrint"Pre Print" code of control in a report.
trtRightButtonDoubleClickCode of double click on right button.
trtRightButtonDownCode of right button down.
trtRightButtonUpCode of right button up.
trtLeftButtonDoubleClickCode of double click on left button.
trtLeftButtonDownCode of left button down.
trtLeftButtonUpCode of left button up.
trtMiddleButtonDoubleClickCode of double click on middle button.
trtMiddleButtonDownCode of middle button down.
trtMiddleButtonUpCode of middle button up.
trtSystemButton"Before closing with OK/Close button" code.
Windows Mobile This constant is available for Windows Mobile only.
Versions 23 and later
trtChangeLayout
New in version 23
trtChangeLayout
trtChangeLayout
"Change of layout" code of window.
WEBDEV - Server codeAndroid Widget Universal Windows 10 AppJava This constant is not available.
trtChangeOrganizerPeriod"Whenever changing period" code of Organizer control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Windows MobileUniversal Windows 10 App This constant is not available.
Android Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtChangeSchedulePeriod"Whenever changing period" code of Scheduler control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Windows MobileUniversal Windows 10 App This constant is not available.
Android Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trtChangePlane
New in version 22
trtChangePlane
trtChangePlane
"Whenever changing plane" code of a Sliding Banner control.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtChangePositionMap
New in version 20
trtChangePositionMap
trtChangePositionMap
"Whenever changing position" code of Map control.
AndroidAndroid Widget Java This constant is not available.
Versions 20 and later
trtResizeWidget
New in version 20
trtResizeWidget
trtResizeWidget
"Resizing a Widget" code of Dashboard control.
AndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtResizeCode for resizing the window.
Universal Windows 10 App This constant is not available.
trtClick
  • Click code of control.
  • Code of the button associated with the click in the window.
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.
Versions 22 and later
trtClickButtonArrow
New in version 22
trtClickButtonArrow
trtClickButtonArrow
Click code on the arrow associated with a button.
WEBDEV - Server codeAndroidAndroid Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtHorizontalScroll"Horizontal scrollbar" code (Scrollbar control only).
trtVerticalScroll"Vertical scrollbar" code (Scrollbar control only).
Versions 20 and later
trtRequestUpdate
New in version 20
trtRequestUpdate
trtRequestUpdate
"Request for updating the display" code (window and internal window).
WEBDEV - Server codeAndroid Widget Java This constant is not available.
trtMoveWindowCode for moving the window.
WEBDEV - Server codeAndroidAndroid Widget Java This constant is not available.
trtMoveOrganizerAptCode for moving an appointment in an Organizer control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Windows MobileUniversal Windows 10 App This constant is not available.
Android Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtMoveScheduleAptCode for moving an appointment in a Scheduler control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Windows MobileUniversal Windows 10 App This constant is not available.
Android Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 20 and later
trtMoveWidget
New in version 20
trtMoveWidget
trtMoveWidget
"Moving a Widget" code of Dashboard control.
iPhone/iPadWindows MobileUniversal Windows 10 AppJava 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.
trtCollapseExpandBranchCollapsed/Expanded code of a node in a TreeView or TreeView Table control.
iPhone/iPadUniversal Windows 10 App This constant is not available.
Versions 22 and later
trtCollapseExpandBreak
New in version 22
trtCollapseExpandBreak
trtCollapseExpandBreak
Collapsed/Expanded code of a break in a Looper or Table control.
WEBDEV - Server codeAndroidAndroid Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtEnterEntry code in the control.
trtLineEnterEntry code of a row (Table control only).
WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtEnterInputOrganizerAptEntry code in input for an appointment in an Organizer control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeWindows MobileUniversal Windows 10 App This constant is not available.
trtEnterInputSchedulerAptEntry code in input for an appointment in a Scheduler control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeWindows MobileUniversal Windows 10 App This constant is not available.
trtEnterRolloverOptional entry code in rollover in a Table control.
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJava This constant is not available.
Versions 21 and later
trtWinEdChangeSize
New in version 21
trtWinEdChangeSize
trtWinEdChangeSize
Code 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 codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 21 and later
trtWinEdMove
New in version 21
trtWinEdMove
trtWinEdMove
Code 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 codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 21 and later
trtWinEdSelection
New in version 21
trtWinEdSelection
trtWinEdSelection
Code 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 codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtClosing
  • Closing code of window.
  • Closing code of page.
  • Closing code of report.
trtComboClosingClosing code of drop-down list.
WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtFilterCode for filtering the report data.
trtEndInitialization"End of initialization" code (browsing List Box, Table and Combo Box control).
trtEndChange"End of modification" code (Slider and Scrollbar control only).
WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtInit
  • Initialization code of control.
  • Initialization code of window.
  • Initialization code of page.
  • Opening code of report.
trtReadLastCode for reading the last record (Table control only).
Universal Windows 10 App This constant is not available.
trtReadDataCode for reading the report data.
trtReadPreviousCode for reading the previous record (Table control only).
Universal Windows 10 App This constant is not available.
trtReadFirstCode for reading the first 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.
Versions 22 and later
trtUpdateUI
New in version 22
trtUpdateUI
trtUpdateUI
"Request for updating the display" code (window and internal window).
WEBDEV - Server codeAndroidAndroid Widget Java This constant is not available.
trtChange
  • "Whenever modified" code of control.
  • Modification code of window.
Versions 22 and later
trtModificationSpreadsheetCell
New in version 22
trtModificationSpreadsheetCell
trtModificationSpreadsheetCell
"Cell modification" code of Spreadsheet control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJava This constant is not available.
Versions 24 and later
trtModificationColumnFilter
New in version 24
trtModificationColumnFilter
trtModificationColumnFilter
Code "Whenever modifying the filter (user input in header)" of a Table Column control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJava This constant is not available.
trtSliderChange"Whenever modified" code (Slider control only).
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadUniversal Windows 10 AppJava This constant is not available.
trtZoomModificationCode for modifying the zoom of a Range Slider control.
WEBDEV - Server codeAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtMenuOptionCode of menu option (main or popup menu).
iPhone/iPadUniversal Windows 10 App This constant is not available.
iPhone/iPad This constant is not available.
trtOpening
  • Initialization code of window.
  • Opening code of page.
  • Opening code of report.
trtComboOpeningCode for opening the drop-down list of Combo Box control.
WEBDEV - Server codeiPhone/iPad This constant is not available.
trtKillFocusCode of focus loss for the window.
Universal Windows 10 App This constant is not available.
trtGetFocusCode of focus gain for the window.
Universal Windows 10 App This constant is not available.
trtReassignResourceScheduleAptCode for re-assigning an appointment in a Scheduler control.
AndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
Versions 22 and later
trValueRetrieval
New in version 22
trValueRetrieval
trValueRetrieval
Code for retrieving the Value property of a Web Component control.
WINDEVAndroidAndroid Widget iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtResizeOrganizerAptCode for resizing an appointment in an Organizer control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtResizeScheduleAptCode for resizing an appointment in a Scheduler control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtMouseWheelCode for using the mouse wheel.
trtSelectionSelection code (Combo Box, List Box and Table control).
trtSelectOrganizerPeriodCode for selecting a period in an Organizer control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtSelectSchedulePeriodCode for selecting a period in a Scheduler control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtSelectOrganizerAptCode for selecting an appointment in an Organizer control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeAndroid Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtSelectScheduleAptCode for selecting an appointment in a Scheduler control.
WEBDEV - Server codeiPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeAndroid Widget Windows MobileUniversal Windows 10 AppJava This constant is not available.
trtExitExit code of control.
trtLineExitExit code of row (Table control only).
WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This constant is not available.
WEBDEV - Server codeUniversal Windows 10 App This constant is not available.
trtOrganizerInputExitAptExit code from input for an appoingment in an Organizer control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtScheduleInputExitAptExit code from input for an appoingment in a Scheduler control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtExitRolloverExit code from rollover of Table control.
iPhone/iPadUniversal Windows 10 App This constant is not available.
trtSpinMinusDecrement code of Spin control.
WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This constant is not available.
trtSpinPlusIncrement code of Spin control.
WEBDEV - Server codeiPhone/iPadUniversal Windows 10 App This constant is not available.
trtDeleteTokenCode for deleting a token from a "Text token" edit control.
WEBDEV - Server codeiPhone/iPadWindows MobileWindows MobileUniversal Windows 10 App This constant is not available.
trtDeleteOrganizerAptCode for deleting an appointment from an Organizer control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
trtDeleteScheduleAptCode for deleting an appointment from a Scheduler control.
iPhone/iPadWindows MobileUniversal Windows 10 App This constant is not available.
Versions 20 and later
trtDeleteWidget
New in version 20
trtDeleteWidget
trtDeleteWidget
Code for deleting a widget from a Dashboard control.
iPhone/iPadWindows MobileUniversal Windows 10 AppJava This constant is not available.
trtRolloverRollover code of control.
Versions 20 and later
trtPullToRefresh
New in version 20
trtPullToRefresh
trtPullToRefresh
"Pull to refresh" code in a Table or Looper control.
WEBDEV - Server codeJava This constant is not available.
trtKeyPressedKey Pressed code.
trtKeyDownKey Down code.
trtKeyUpKey Up code.
trtSystemKeyPressedSystem Key Pressed code.
AndroidAndroid Widget Java This constant is not available.
trtSystemKeyDownSystem Key Down code.
AndroidAndroid Widget Java This constant is not available.
trtSystemKeyUpSystem Key Up code.
AndroidAndroid Widget Java 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 processes

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

Case of processes expecting parameters

Some processes are using parameters (processes regarding the Organizer or Scheduler controls for example). The procedure defined by ..Process must not expect more parameters than the process (however, it can expect less parameters).

Using the MySelf keyword

If MySelf is used in a procedure called by ..Process, 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 ReturnToCapture.
Example:
// Click on BTN_Button1
BTN_Button2..Process[trtClick] += MyProc1
BTN_Button2..Process[trtClick] += MyProc2
// Click on BTN_Button2
Trace("Button 2 clicked")
PROCEDURE MyProc1()
Trace(dbgInfo(dbgProcess))
ReturnToCapture(MySelf..Name)
PROCEDURE MyProc2()
Trace(dbgInfo(dbgProcess))
Minimum required version
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment