PC SOFT

WINDEV的在线文档

  • Characteristics of the popup window
  • Parameters passed to the window to open
  • Limits
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

Opens a popup window and waits for this window to be closed. This function must be used in the code of a control (click code of a button for example).
例子
// Open the window for color selection
MyColor整数型
MyColor打开弹出式窗口WIN_ColorWinSelection
// If a color was selected
// (nColor <= 0 if the window is canceled)
如果MyColor大于0,那么
// Change the color of the button rectangle
BTN_Color..标签=图示矩形007216MyColor0
结束

语法
 <Result> = 打开弹出式窗口(<Window Name> [, <Parameter1> [, <Parameter2> [, ...]]])
<Result>: Type corresponding to the retrieved value (optional)
Value returned by the popup window when it is closed. This value is returned:
<Window Name>: Character string (with or without quotes)
Name of the window to open.
<Parameter1>: Type of the value sent to the window (optional)
First parameter that must be passed to the "Declaration of global variables" process of the window to open. These parameters are passed by address and they are considered as being global variables of the window.
<Parameter2>: Type of the value sent to the window (optional)
Second parameter that must be passed to the "Declaration of global variables" process of the window to open. These parameters are passed by address and they are considered as being global variables of the window.

注意

Characteristics of the popup window

  • The window is automatically closed when it loses focus or during the call to 关闭. The current value is returned to the control that opened the popup window by one of the following methods:
  • The style of the popup windows is applied to the window opened by 打开弹出式窗口. If a title bar was defined in the editor, this title bar is reduced and the window cannot be maximized or minimized.
  • The popup window is opened below the control that runs 打开弹出式窗口. If there is not enough space to open the window, the window will be opened either above the control, or below the control to the left.

Parameters passed to the window to open

The parameters are retrieved in the "Declaration process of global variables" of the window. To do so, specify the following line at the beginning of the process:
PROCEDURE <Window Name> (<Parameter1> [, <Parameter2> [, ...]])

See Window with parameters for more details.

Limits

  • 打开弹出式窗口 must be run from the code of a control.
  • The control from which 打开弹出式窗口 is run must be visible.
  • A window that is not a modal window cannot be opened from a popup window. 打开 must be used to open a window. Opening a modal window from a popup window does not automatically close the popup window. In this case, you must process the return value of 打开 and you must use 关闭 to close the popup window.
  • A popup window cannot be opened from a popup window.

组件
WinDev wd200obj.dll