PC SOFT

WINDEV的在线文档

  • Handling the control that opened the popup window
  • Using MyPopupControl in a procedure
  • WLanguage functions and current 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本地访问

我的弹出控件 (Reserved word)

我的弹出控件 is used to handle the control that opened a popup window.

At run time, 我的弹出控件 is replaced by:

In any case, 我的弹出控件 is replaced at run time by the corresponding control (and not by the name of the control). Then, 我的弹出控件 can be used like any control.

Benefit: 我的弹出控件 is used to make a local code (control, button, ...) or a global code (global procedure, class, ...) independent of the current popup window.

例子
如果我的弹出控件..类型=类型.按钮,那么
我的弹出控件..标签="Selection in progress"
结束

语法
 我的弹出控件

注意

Handling the control that opened the popup window

  • 我的弹出控件 is always replaced by the control that opened the popup window. Therefore, it can be handled from the code of the popup window. For example:
如果我的弹出控件..类型=类型.按钮,那么
我的弹出控件..标签="Selection in progress"
结束

// Pass in parameter:
CallProcedure(我的弹出控件)

  • 我的弹出控件 can only be used in the processes that handle the current popup window (in the processes associated with a control for example). 我的弹出控件 cannot be used in a report or in a window that is not a popup report or a popup window.

Using MyPopupControl in a procedure

  • The 我的弹出控件 keyword can be used in a local or global procedure only if the procedure is called in a process associated with a control of the popup window or in a process of the popup window. In this case, 我的弹出控件 refers to the control that opened the popup window.
  • 我的弹出控件 is used to make a procedure "generic": the name of the control is not spelled out. This procedure can be called by several controls.

WLanguage functions and current window

To specify the control that opened the current popup window in the WLanguage functions that accept a control name in parameter, use 我的弹出控件 directly.