AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Ventana interna
  • Parameters passed to the internal window to be opened
  • Events executed when changing the internal window
  • Limitations
  • SourceWindow property
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Dynamically changes the window displayed in an Internal Window control. During this modification, parameters can be passed to the new internal window.
AndroidiPhone/iPadIOS WidgetMac Catalyst Case of internal window dequeues The <Internal window>.ChangeSourceWindow function modifies the currently displayed window. This modification is saved in the list of internal windows to scroll.
WEBDEV - Código Servidor Note: This function is now available for WEBDEV projects to facilitate webification of WINDEV applications. It is recommended to use ChangeSourcePage.
Ejemplo
// Load the internal window IW_InternalWindow1
// in the Internal Window control IWC_InternalWindowControl
IWC_InternalWindowControl.ChangeSourceWindow(IW_InternalWindow1)
// Load the internal window IW_InternalWindow1, 
// on the row RowIndex of an Internal Window control named IWC_InternalWindowControl 
// in a Container column of a Table control
// Warning: field CFI_InternalWindowField must have 
// the option "Identical content for all the rows" unchecked 
// ("UI" tab of the description window)
TABLE_TableControl[RowIndex].IWC_InternalWindowControl.ChangeSourceWindow(...
	IW_InternalWindow1)
Sintaxis
<Internal Window control>.ChangeSourceWindow(<Internal window> [, <Parameter 1> [... [, <Parameter N>]]])
<Internal Window control>: Control name
Name of the Internal Window control that will be modified.
<Internal window>: Character string
Name of the internal window that will be associated with the Internal Window control.
<Parameter 1>: Type corresponding to the parameter (optional)
First parameter to be passed to the internal window.
<Parameter N>: Type corresponding to the parameter (optional)
Nth parameter to be passed to the internal window.
Observaciones

Parameters passed to the internal window to be opened

Parameters are specified in the "Global declarations" event of the internal window. Simply write the following line of code at the start of the event:
PROCEDURE <Internal Window name>(<Parameter1> [, <Parameter2> [, ...]])

For more details, see Window with parameters.

Events executed when changing the internal window

The following events are executed when <Internal window>.ChangeSourceWindow is called:
  • Event "Before unloading the internal window". This event is associated with the Internal Window control.
  • Event "Closing" of the old internal window.
  • "Global declarations" event of the new internal window.
  • "Initialization" event of the controls in the new internal window.
  • "Initialization" event of the internal window.
  • Event "After loading the internal window". This event is associated with the Internal Window control.

Limitations

  • The names and parameters of the called functions must be identical in both windows.
  • If a control found in the internal window is directly used from outside, a control with the same name must be found in the new internal window.
  • The values of global variables for the former internal window are lost.
  • The persistent values of the former internal window are saved and restored in the new one.

SourceWindow property

The SourceWindow property returns the name of the internal window currently displayed in an "Internal Window" control.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 25
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2025

Señalar un error o enviar una sugerencia | Ayuda local