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 / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Ventana interna
  • Overview
  • Programming in WLanguage
  • Available functions and properties
  • Passing parameters to an internal window
  • Operating mode of groups of controls
  • Example: File picker created via an internal window
  • Getting the default value of the file picker
  • Transmitting the value typed in the internal window
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
Manipulating Internal Window controls programmatically
Overview
The "Internal Window" control is used to display an existing internal window. Several operations can be performed on the Internal Window control programmatically.
Warning: Do not confuse "Internal Window Field" and "Internal Window": the "Internal Window" field is a field type, and the "Internal Window" is a window type.
Programming in WLanguage

Available functions and properties

The following WLanguage functions and properties are available:
  • WLanguage functions:
    ChangeSourceWindowDynamically changes the window displayed in an Internal Window control. During this modification, parameters can be passed to the new internal window.
    WinUsefulSizeDynamically changes the useful size of the internal window displayed in an Internal Window control.
  • WLanguage property:
    SourceWindowUsed to find out the source of an internal window (which means the internal window displayed by the Internal Window control).
iPhone/iPad Several functions are also available to make the internal windows scroll in an Internal Window control via a simple finger gesture. For more details, see Changing the content of an internal window with a touch gesture.

Passing parameters to an internal window

To pass parameters to an internal window, we advise you to:
  1. Create an initialization procedure in the internal window.
  2. Call this procedure in the window that contains the "Internal Window" control.Example:
// -- Initialization code of WIN_Window1
// IW_MyInternalWin is a control of WIN_Window1
// That is linked to an internal window
// This internal window includes a procedure named Init()
IW_MyInternalWin.Init(Param1, Param2)
Note The ChangeSourceWindow function can be used to dynamically change the internal window displayed in an internal window field. During this modification, you have the ability to pass parameters to the internal window.

Operating mode of groups of controls

The groups of controls are global to the window and to its internal windows. The groups of controls found in two internal windows displayed in the same window are not differentiated.
Therefore, hiding a group of controls found in an internal window can also hide the controls found in another internal window if the internal windows use the same name for the groups of controls.
Example: File picker created via an internal window

Getting the default value of the file picker

To get the default value of the file picker in the internal window:
  1. In the initialization code of the host window for example, initialize the value of the internal window:
    IW_InternalWindow1 = "C:\temp"
  2. In the "Set the Value property" event of the internal window, retrieve the value and assign it to the Edit control of the file picker:
    EDT_DirEdit = MySelf.Value

Transmitting the value typed in the internal window

To transmit the value typed by the user to the host window:
  1. In the "Get the Value property" event of the internal window, enter:
    RETURN EDT_DirEdit
  2. In the host window, retrieve the value of the internal window control:
    Info(IW_InternalWindow1.Value)
Versión mínima requerida
  • Versión 10
Esta página también está disponible para…
Comentarios
Exemplo com fonte
https://repository.windev.com/resource.awp?file_id=281474976711257;trabalhando-com-janelas-internas-working-with-internal-windows-posicionando-centro-fechando-usando-indirection
Boller
18 11 2021
Exemplo Internal Window
WM - Trabalhando com janelas internas - Working with internal windows, posicionando IW no centro e fechando usando indirection
Boller
18 11 2021

Última modificación: 23/11/2024

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