PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Displays a Popup control in a page with a DDW effect (Dim Disabled Windows). This function is used to easily simulate a dialog box in browser code, by using a Popup control of the page.
Remark: To display a Popup control, <Popup>.Display can be used::
  • in a "None" button. In this case, only the browser code of the button will be run.
  • in a "Submit" button. AJAX must be enabled in the code of this button. In this case, the browser code and the server code of button will be run.
Versions 18 and later
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codePHP This function is now available for PHP sites.
New in version 18
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codePHP This function is now available for PHP sites.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codePHP This function is now available for PHP sites.
Example
POPUP_Question.Display(popupCenter)
Syntax

Displaying a Popup control at a specific position Hide the details

<Popup>.Display([<Display position> [, <X> [, <Y>]]])
<Popup>: Control name
Name of the Popup control to display.
<Display position>: Optional Integer constant
Position to display the Popup control corresponding to one of the following constants:
Versions 18 and later
popupBottomCenter
New in version 18
popupBottomCenter
popupBottomCenter
The Popup control is centered at the bottom of the visible part of the current page.
popupBottomRightThe Popup control is at the bottom right of the visible part of the current page.
popupBottomLeftThe Popup control is at the bottom left of the visible part of the current page.
popupCenter
(Default value)
The Popup control is centered in the visible part of the current page.
Versions 18 and later
popupCenterRight
New in version 18
popupCenterRight
popupCenterRight
The Popup control is centered to the right of the visible part of the current page.
Versions 18 and later
popupCenterLeft
New in version 18
popupCenterLeft
popupCenterLeft
The Popup control is centered to the left of the visible part of the current page.
Versions 18 and later
popupFixed
New in version 18
popupFixed
popupFixed
The Popup control is pinned at the specified position: the position of the Popup control will not change if the page is scrolled or if the browser size is modified.
This constant can be combined with one of the other constants to position the Popup control.
Versions 18 and later
popupTopCenter
New in version 18
popupTopCenter
popupTopCenter
The Popup control is centered at the top of the visible part of the current page.
popupTopRightThe Popup control is at the top right of the visible part of the current page.
popupTopLeftThe Popup control is at the top left of the visible part of the current page.
popupPositionXYThe Popup control will be opened at the specified X and Y positions.
popupMouseXYThe Popup control will be opened at the position of the mouse. This constant can only be used in a browser event (of a control or page). This constant cannot be used:
  • in the browser procedures.
  • in the events directly or indirectly called from a browser procedure (via ExecuteProcess for example).
  • in the browser code of a Button or Link control.
WEBDEV - Server codePHP This constant is not available.
<X>: Optional integer
If the constant popupPositionXY is used, indicates the X position of the Popup control (in relation to the top left corner of the page). This parameter is expressed in pixels.
<Y>: Optional integer
If the constant popupPositionXY is used, indicates the Y position of the Popup control (in relation to the top left corner of the page). This parameter is expressed in pixels.
WEBDEV - Browser code

Displaying a Popup control relatively to a control Hide the details

<Popup>.Display(<Name of base control> [, <Display position> [, <X> [, <Y>]]])
<Popup>: Control name
Name of the Popup control to display.
<Name of base control>: Control name
Name of the control that serves as a reference to display the Popup control.
<Display position>: Optional Integer constant
Position to display the Popup control corresponding to one of the following constants:
Versions 18 and later
popupBottomCenter
New in version 18
popupBottomCenter
popupBottomCenter
The Popup control is centered at the bottom of the control.
popupBottomRightThe Popup control is at the bottom right of the control.
popupBottomLeft
(Default value)
The Popup control is at the bottom left of the control.
popupCenterThe Popup control is centered relative to the base control.
Versions 18 and later
popupCenterRight
New in version 18
popupCenterRight
popupCenterRight
The Popup control is centered to the right relative to the base control.
Versions 18 and later
popupCenterLeft
New in version 18
popupCenterLeft
popupCenterLeft
The Popup control is centered to the left relative to the base control.
Versions 18 and later
popupFixed
New in version 18
popupFixed
popupFixed
The Popup control is pinned at the specified position: the position of the Popup control will not change if the page is scrolled or if the browser size is modified.
This constant can be combined with one of the other constants to position the Popup control.
Versions 18 and later
popupTopCenter
New in version 18
popupTopCenter
popupTopCenter
The Popup control is centered at the top relative to the base control.
popupTopRightThe Popup control is at the top right relative to the base control.
popupTopLeftThe Popup control is at the top left relative to the base control.
popupPositionXYThe Popup control will be displayed at the specified X and Y positions.
<X>: Optional integer
If the popupPositionXY constant is used, indicates the display X position of the popup (in relation to the top left corner of the control). This parameter is expressed in pixels.
<Y>: Optional integer
If the popupPositionXY constant is used, indicates the display Y position of the popup (in relation to the top left corner of the control). This parameter is expressed in pixels.
Remarks
  • The Popup control displayed can be hidden with <Popup>.Close.
  • The browsers do not refresh the display in the middle of a JavaScript code: <Popup>.Display and <Popup>.Close must be used in different events/processes. If these functions are used in the same event/process, the Popup control is not displayed.
  • Two different Popup or Cell controls cannot be displayed at the same time by <Popup>.Display or <Cell>.DisplayDialog.
  • The DDW (Dim Disabled Windows) can be disabled and customized:
  • WEBDEV - Server code This function cannot be used in the scheduled tasks and in the delayed tasks. See Scheduled and delayed tasks for more details.
Component : wd240wl2js.dll
Minimum version required
  • Version 23
Comments
Click [Add] to post a comment