|
|
|
|
|
- Handling the control that opened the popup window
- Using MyPopupControl in a procedure
- WLanguage functions and current window
MyPopupControl (Reserved word) In french: MonChampPopup
MyPopupControl is used to handle the control that opened a popup window. At runtime, MyPopupControl is replaced with: In any case, MyPopupControl is replaced at runtime by the corresponding control (and not by the name of the control). Then, MyPopupControl can be used like any control. The MyPopupControl keyword can be used to make local (control, button, etc.) or global (procedure, class, etc.) code independent of the current popup window. IF MyPopupControl..Type = typButton THEN
MyPopupControl..Caption = "Selection in progress"
END
Remarks Handling the control that opened the popup window - MyPopupControl is always replaced with the control that opened the popup window. Therefore, it can be handled from the code of the popup window. For example:
IF MyPopupControl..Type = typButton THEN
MyPopupControl..Caption = "Selection in progress"
END
CallProcedure(MyPopupControl)
- MyPopupControl can only be used in the processes that handle the current popup window (in the processes associated with a control for example). MyPopupControl 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 MyPopupControl 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, MyPopupControl refers to the control that opened the popup window.
- The MyPopupControl keyword is used to make a procedure "generic": The control name 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 accepting a control name as parameter, use the MyPopupControl keyword.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|