PC SOFT

WINDEV的在线文档

  • Overview
  • Programming in WLanguage
  • Available functions and properties
  • Passing parameters to an internal window
  • Operating mode of the groups of controls
  • Example: File picker created via an internal window
  • Retrieving the default value of the file picker
  • Transmitting the value entered in the internal window
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

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.

20版本和更高版本
WinDevLinux The internal windows are now available for the WinDev applications in Linux.
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:
    改变窗口源Dynamically changes the window displayed in an Internal Window control. During this modification, parameters can be passed to the new internal window.
    窗口使用尺寸Dynamically changes the useful size of the internal window displayed in an Internal Window control.

  • WLanguage property:
    窗口源Used to find out the source of an internal window (which means the internal window displayed by the Internal Window control).

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.InitParam1Param2

Note: 改变窗口源 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 the 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 "Assign the ..值 property" process of the internal window, retrieve the value and assign this value to the edit control of the picker:
    EDT_DirEdit=我自己..值

Transmitting the value entered in the internal window

To transmit the value entered by the user to the host window:
  1. In the "Get the ..值 property" process of the internal window, enter:
    发送回EDT_DirEdit
  2. In the host window, all you have to do is retrieve the value of the internal window control:
    信息IW_InternalWindow1..值)