PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE

  • Processes managed by default
  • Optional processes
  • Put the application in the foreground
  • Put the application in the background
  • Change of layout
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
Processes associated with windows
Processes managed by default
WINDEV and WINDEV Mobile manage the following processes by default (in the order in which they appear in the code editor):
ProcessRuntime condition
Global declarationsDeclaring the variables global to the window. This is the first code run when opening the window.
Initialization (before version 180062)
End of initialization (after version 180062)
End of initialization
Run when opening the window.
The processes are run in the following order:
  • Initializing the window controls (*)
  • Initializing the window
  • Focus gain
Note: A blinking effect may occur if code for updating the controls is included in this process. Indeed, the initialization code of controls is run before the update code.
ClosingRun when closing the window.
Note: Resuming the input in one of the window controls in this code prevents from closing the window.
Versiones 20 y posteriores
Request for refreshing the display
Nueva funcionalidad versión 20
Request for refreshing the display
Request for refreshing the display
Used to group the code for updating the window controls: content of controls, status (visible, grayed, ...), static to update, ...
This process may expect parameters. All you have to do is declare a procedure in the process. For example:
// Request for refreshing the display
PROCÉDURE AskForRefresh(RefreshType is boolean)
This process is started upon request by the following functions:
During the call to these functions, you have the ability to specify the value of parameters expected by the process.
Android This process is not available.
Windows Mobile Before closing with OK/Close button
Run when using the OK/Close button
Operating mode of the Close button
The following processes are run:
  • running the "Before closing with OK/Close button" process.
  • running the code of the "Cancel" button found in the window (if this button exists). If the window contains no "Cancel" button, the window is closed.
Operating mode of the OK button
The following processes are run:
  • running the "Before closing with OK/Close button" process.
  • running the code of "Validate" button found in the window (if this button exists). If the window contains no "Validate" button, the window is closed.
Note: The window will not be closed if the "Before closing with the OK/Close button" process calls ReturnToCapture.
AndroidWidget Android iPhone/iPadUniversal Windows 10 App This process is not available.
Focus gainRun when the window takes focus (the title bar is active) and when another application window loses focus:
  • the user clicked another application window
  • ReturnToCapture was run from another application window
This process will not be run:
  • when opening the first project window.
  • when running OpenChild or OpenSister from the current window.
  • if Close is called in the initialization code of window.
  • if the user clicks a window of another program then re-clicks the initial window.
This process will not be run:
  • when opening the first project window.
  • when running OpenChild, OpenMobileWindow or OpenSister from the current window.
  • if Close is called in the initialization code of window.
  • if the user clicks a window of another program then re-clicks the initial window.
AndroidWidget Android Universal Windows 10 App This process is not available.
Focus lossRun when the window loses focus when going to another window. This process is always called before the process for taking focus of another window in the following cases:
  • closing the window (before the closing process)
  • the user clicked another application window
  • ReturnToCapture was run from another application window
This process will not be run:
  • if ReturnToCapture toward another window was run in the initialization code of window
  • if Close is called in the initialization code of window
  • if the user clicks a window of another program then re-clicks the initial window
AndroidWidget Android Universal Windows 10 App This process is not available.
Whenever modifiedRun when one of the window controls is modified (input performed by the user for example).
Versiones 17 y posteriores
AndroidUniversal Windows 10 App Changing the orientation
Nueva funcionalidad versión 17
AndroidUniversal Windows 10 App Changing the orientation
AndroidUniversal Windows 10 App Changing the orientation
Run when the user turns the screen around. This allows you to reposition the controls when changing the orientation of the screen.
Versiones 18 y posteriores
AndroidiPhone/iPadUniversal Windows 10 App Closing a child window of the window
Nueva funcionalidad versión 18
AndroidiPhone/iPadUniversal Windows 10 App Closing a child window of the window
AndroidiPhone/iPadUniversal Windows 10 App Closing a child window of the window
AndroidiPhone/iPadUniversal Windows 10 App Closing a child window of the window
Run when closing a child window opened from the current window.
You can:
  • find out the name of the child window that was closed by ..Name.
  • retrieve the return value of child window via ..ReturnedValue.
Example:
// -- Close a child window of WIN_OrderList
// Refreshes the list of orders if necessary
IF MyChildWindow..ReturnedValue = True THEN
OrderList()
END
The MyChildWindow keyword allows you to handle the characteristics of child window.
ResizingRun in the following cases:
  • Minimizing the window
  • Enlarging or resizing the window
  • Restoring the window once it was minimized
Universal Windows 10 App This process is not available.
Versiones 18 y posteriores
Widget Android Refreshing the Widget
Nueva funcionalidad versión 18
Widget Android Refreshing the Widget
Widget Android Refreshing the Widget
Used to update the Widget content. This process is run:
  • when opening a Widget window.
  • at regular time interval. This interval is defined in the "Details" tab of description window.
Note: WidgetDisplay redisplays the Widget and runs the refresh process.
(*) By default, the "Initializing" process of each control is run according to the creation order of controls in the window. To modify this runtime order:
  1. Select "Windows .. Edit the initialization order".On the "Window" pane, in the "Order" group, click "Initialization".
  2. In the window that is displayed, use the arrows on the right to modify the initialization order of controls.
Caution: If one or more controls use the persistence of controls, the "Whenever modified" code can be run when initializing the control. See Persistence of controls for more details.
Optional processes
Several optional processes can be managed.
To manage an optional process, all you have to do is select it in the icon bar of code window.
Para añadir un evento opcional:
  1. Seleccione el control deseado.
  2. Visualizar la ventana de código de este control (tecla F2).
  3. Haga clic en el enlace "Añadir otros procesos a xxx" en la parte inferior del código de la ventana, después del último evento.Haga clic en el enlace "Añadir otros eventos a xxx" en la parte inferior del código de la ventana, después del último evento.
  4. Se visualizan todos los eventos opcionales disponibles para el control..
  5. Marque el evento opcional para agregar y validar.
    señalar: Puede seleccionar varios eventos opcionales.
  6. El evento opcional seleccionado se añade automáticamente a los eventos gestionados por el control.
Para desactivar un evento opcional, simplemente realice las mismas operaciones para mostrar la lista de eventos opcionales. A continuación, simplemente desmarque los eventos opcionales para eliminar.
señalar: Si el código desactivado contiene código WLanguage, este código se elimina automáticamente.
You have the ability to manage:
  • the control rollover with the mouse,
  • the left mouse button down, up, with a double click,
  • the right mouse button down, up, with double click,
  • the mouse wheel, ...
Versiones 18 y posteriores
AndroidiPhone/iPad

Put the application in the foreground

Run when the application is re-enabled and when it is placed in the foreground. This process is used to refresh the data displayed for example.
Note: This process is run AFTER the "Put in foreground" process of project.
Nueva funcionalidad versión 18
AndroidiPhone/iPad

Put the application in the foreground

Run when the application is re-enabled and when it is placed in the foreground. This process is used to refresh the data displayed for example.
Note: This process is run AFTER the "Put in foreground" process of project.
AndroidiPhone/iPad

Put the application in the foreground

Run when the application is re-enabled and when it is placed in the foreground. This process is used to refresh the data displayed for example.
Note: This process is run AFTER the "Put in foreground" process of project.
Versiones 18 y posteriores
AndroidiPhone/iPad

Put the application in the background

Run when the application is placed in the background. This process is used to save data for example.
Note: This process is run BEFORE the "Put in background" process of project.
Nueva funcionalidad versión 18
AndroidiPhone/iPad

Put the application in the background

Run when the application is placed in the background. This process is used to save data for example.
Note: This process is run BEFORE the "Put in background" process of project.
AndroidiPhone/iPad

Put the application in the background

Run when the application is placed in the background. This process is used to save data for example.
Note: This process is run BEFORE the "Put in background" process of project.
Versiones 23 y posteriores
WINDEVAndroidiPhone/iPad

Change of layout

Run when the layout is automatically modified.
Note: WinChangeLayout does not trigger this process.
Nueva funcionalidad versión 23
WINDEVAndroidiPhone/iPad

Change of layout

Run when the layout is automatically modified.
Note: WinChangeLayout does not trigger this process.
WINDEVAndroidiPhone/iPad

Change of layout

Run when the layout is automatically modified.
Note: WinChangeLayout does not trigger this process.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario