SGPopup Class

The SGPopup class enables the client to display pop-up windows (similar to HTML IFRAME) over the 3D window. This class is used in calls to SGWorld::showPopup().

Constructor

Name

Description

Constructor

Initializes a new instance of the SGPopup class.

Properties

Name

Description

left Property

Left x coordinate where the pop-up will be displayed relative to the 3D window.

top Property

Top y coordinate where the pop-up will be displayed relative to the 3D window.

width Property

Width, in pixels or in percentage of the 3D window, of the pop-up window.

height Property

Height, in pixels or in percentage of the 3D window, of the pop-up window.

caption Property

Caption of the pop-up.

src Property

A URL that is the source HTML to be displayed in the pop-up window.

timeout Property

Time in milliseconds, the pop-up window is displayed.

innerHTML Property

If the src property is undefined, the pop-up window utilizes an HTML page and lets the user modify its innerHTML as in a regular HTML web page.

innerText Property

If both src and innerHTML properties are undefined, the pop-up window is a simple text string. The text string is determined via this property.

allowResize Property

Enable/disable resizing of the pop-up window.

allowDrag Property

Enable/disable dragging of the pop-up window.

anchorToView Property

If true (default), whenever the user resizes the 3D window, the pop-up window jumps back to its original top, left position.

align Property

An alignment string that specifies the position of the pop-up window.