PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • 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
  • Retrieving 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Handling an Internal Window control by 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.
Versions 16 and later
Android The internal windows are now available for the Android applications.
New in version 16
Android The internal windows are now available for the Android applications.
Android The internal windows are now available for the Android applications.
Versions 17 and later
iPhone/iPad The internal windows are now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad The internal windows are now available for the iPhone/iPad applications.
iPhone/iPad The internal windows are now available for the iPhone/iPad applications.
Versions 20 and later
WINDEVLinux The internal windows are now available for the WINDEV applications in Linux.
New in version 20
WINDEVLinux The internal windows are now available for the WINDEV applications in Linux.
WINDEVLinux The internal windows are now available for the WINDEV applications in Linux.
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.
    Android This function is not available in Android.
  • WLanguage property:
    SourceWindowUsed to find out the source of an internal window (which means the internal window displayed by the Internal Window control).
Versions 18 and later
AndroidiPhone/iPad Several functions are also available to make the internal windows scroll in an Internal Window control via a simple finger gesture. See Changing the content of an internal window by gesture for more details.
New in version 18
AndroidiPhone/iPad Several functions are also available to make the internal windows scroll in an Internal Window control via a simple finger gesture. See Changing the content of an internal window by gesture for more details.
AndroidiPhone/iPad Several functions are also available to make the internal windows scroll in an Internal Window control via a simple finger gesture. See Changing the content of an internal window by gesture for more details.

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: 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

Retrieving the default value of the file picker

To retrieve 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 "Assigning the ..Value property" process of internal window, retrieve the value and assign this value to the edit control of 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 "Retrieving the ..Value property" process of internal window, type:
    RESULT EDT_DirEdit
  2. In the host window, all you have to do is retrieve the value of the internal window control:
    Info(IW_InternalWindow1..Value)
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment