DotNetBrowser  1.14
Public Member Functions | List of all members
DotNetBrowser.PopupContainer Interface Reference

Each container that can be used for newly created browser must implement this interface. More...

Inherited by DotNetBrowser.DefaultPopupContainer.

Public Member Functions

void InsertBrowser (Browser browser, Rectangle initialBounds)
 Notification is called when newly created browser instance should be inserted into the parent container and displayed. The initialBounds parameter contains popup window bounds on the screen. More...
 

Detailed Description

Each container that can be used for newly created browser must implement this interface.

Member Function Documentation

void DotNetBrowser.PopupContainer.InsertBrowser ( Browser  browser,
Rectangle  initialBounds 
)

Notification is called when newly created browser instance should be inserted into the parent container and displayed. The initialBounds parameter contains popup window bounds on the screen.

When popup window is opened via the window.open('url','target','left=0, top=0, width=100, height=100') JavaScript function, the initialBounds will contain the Rectangle(0, 0, 100, 100) value.

Parameters
browserthe newly created browser.
initialBoundsinitial bounds of popup window.

Implemented in DotNetBrowser.WPF.WPFPopupContainer, DotNetBrowser.WinForms.WinFormsPopupContainer, and DotNetBrowser.DefaultPopupContainer.