ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Internal Window control
  • 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
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
Handling an Internal Window control through programming
Overview
The "Internal Window" control is used to display an existing internal window. Several operations can be performed on the Internal Window control by programming.
Caution: Do not confuse "Internal Window control" and "Internal window": the "Internal window" control is a type of control while the "Internal window" is a type of window.
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 by 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)
Remark: ChangeSourceWindow is used to dynamically change the internal window displayed in an Internal Window control. 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" of the internal window, enter:
    RESULT EDT_DirEdit
  2. In the host window, retrieve the value of the internal window control:
    Info(IW_InternalWindow1.Value)
Minimum version required
  • Version 10
This page is also available for…
Comments
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 Nov. 2021
Exemplo Internal Window
WM - Trabalhando com janelas internas - Working with internal windows, posicionando IW no centro e fechando usando indirection
Boller
18 Nov. 2021

Last update: 05/26/2022

Send a report | Local help