AGI Ui Plugins 11 Send comments on this topic.
NewWindow Method (IAgUiPluginHtmlWindowSite)
See Also  Example
Plugin
A User Interface plugin object.
Url
A URL of the document to display.
DialogParams
Optional parameters that can be used to specify an initial size and position of the window.  Not currently used.





Description

Opens an HTML window and loads the document specified by a given URL.

Syntax

[Visual Basic .NET]
Public Function NewWindow( _
   ByVal Plugin As IAgUiPlugin, _
   ByVal Url As String, _
   ByRef DialogParams As System.Array _
) As IAgUiWindow

[C#]
public IAgUiWindow NewWindow(
IAgUiPlugin Plugin,
string Url,
ref System.Array DialogParams
);

[Managed C++]
public: IAgUiWindow^ NewWindow(
IAgUiPlugin ^ Plugin,
String __gc ^ Url,
System::Array ^^ DialogParams
);

[Java]
public IAgUiWindow newWindow(
IAgUiPlugin Plugin,
String Url,
Object[] DialogParams
);

[Unmanaged C++]
public: HRESULT NewWindow(
IAgUiPlugin * Plugin,
BSTR Url,
SAFEARRAY ** DialogParams,
IAgUiWindow ** ReturnValue
);

Parameters

Plugin
A User Interface plugin object.
Url
A URL of the document to display.
DialogParams
Optional parameters that can be used to specify an initial size and position of the window.  Not currently used.

Remarks

NewWindow method opens an HTML browser embedded inside the hosting environment and displays the contents of the document using the specified URL.

Example

Open an HTML window Copy Code
// IAgUiPluginSite Site; 
 
IAgUiPluginHtmlWindowSite windowSite = Site as IAgUiPluginHtmlWindowSite; 
if (windowSite != null) 

    Array @params = Array.CreateInstance(typeof(object), 0); 
    IAgUiWindow window = windowSite.NewWindow(this, "http://www.agi.com",  ref @params); 
}

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1