Promotic
WikipediaLinkedInYoutubeTwitterFacebook

WndHtmlPage - method of object Pm

Description:
Display of the HTML page in modal/modeless window.

This method is obsolete (but functional) and is replaced by the OpenView("/#glob/webbrowser") method.

Syntax:
WndHtmlPage(sURL As String, [sStyle As String], [sOptions As String], [vArguments As Variant]) As Variant
Calling:
Pm.WndHtmlPage sURL
Parameters:
sURL(String) Address of HTML page.
sStyle[optional] (String) Text list of additional parameters that define the display mode of the window. Entries with assigned value are separated by a semicolon, for example "modal:yes;".
"modal:yes/no;" (optional) - Flag, if the window is modal (yes) or modeless (no) (yes = default).
sOptions[optional] (String) Text list of additional parameters that are passed to the Internet Explorer for the display of the window. Entries with assigned value are separated by a semicolon, for example "dialogLeft:50px;dialogTop:50px;dialogWidth:300px;dialogHeight:200px;resizable:no;".
"dialogWidth:nnn;" (optional) - Sets the width of the window in entered units (px, mm, cm).
"dialogHeight:nnn;" (optional) - Sets the height of the window in entered units (px, mm, cm).
"dialogLeft:nnn;" (optional) - Sets the left position of the window in entered units (px, mm, cm).
"dialogTop:nnn;" (optional) - Sets the top position of the window in entered units (px, mm, cm).
"center:yes/no;" (optional) - Specifies whether to center the window within the desktop (yes = default).
"resizable:yes/no;" (optional) - Specifies whether the window has fixed dimensions (no = default).
"scroll:yes/no;" (optional) - Specifies whether the window displays scrollbars (yes = default).
"help:yes/no;" (optional) - Specifies whether the window displays the context-sensitive Help icon (yes = default).
"status:yes/no;" (optional) - Specifies whether the window displays a status bar (no = default).
vArguments[optional] (Variant) Parameter that is passed to the displayed HTML page. It can be of any data type, including an array of values. HTML page in the window can access this value by means of the dialogArguments property of the window HTML object.
Return Values:
The return value has sense only for the modal window mode (the sStyle="modal:yes;" parameter). The HTML page in the window can set this value by means of the returnValue property of the window HTML object. It can be of any data type including the value array. If the property in the HTML page is not set or the window is not modal, the the value Empty is returned.
Note:
Position and size of the window can be stated in the following units: px - in pixels, mm - in millimeters, cm - in centimeters.
 
This method is not so far functional for Web Panels.
Example1:
Displaying the appropriate HTML page in a modal window on the specified position and size. The help icon is disables and the dimensions of the window cannot be changed:
Pm.WndHtmlPage "http://www.promotic.eu", ,"dialogLeft:50px;dialogTop:50px;dialogWidth:500px;dialogHeight:300px;resizable:no;help:no;"
Example2:
Displaying the text file eula.txt from the Windows system folder in the modal window.
Pm.WndHtmlPage "file://" & Pm.DiscGetPath("#winsys:eula.txt")
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
- WndHtmlPage
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice