Table of Contents

TTMSFNCWXContainer Class

Control that hosts arbitrary HTML content in an embedded web view, organized as positioned element containers with their own markup, styling, scripting, and event-driven actions, plus a collection of resource links.

API unit family: TMSFNCWXContainer Inherits from: TTMSFNCWXCustomContainer

Syntax

TTMSFNCWXContainer = class(TTMSFNCWXCustomContainer)

Remarks

Add HTML blocks through ElementContainers and the scripts and stylesheets they require through Links. Handle OnControlInitialized to run setup once the view is ready and OnCustomEvent to receive custom events from the page.

Properties

Name Description
ElementContainers The collection of element containers rendered in the hosted page. (inherited from TTMSFNCWXCustomContainer)
Links The collection of resource links injected into the hosted page. (inherited from TTMSFNCWXCustomContainer)

Methods

Name Description
CaptureScreenShot Captures a screenshot of the hosted page content. (inherited from TTMSFNCWXCustomContainer)
ClearCache Clears the browser cache. (inherited from TTMSFNCWXCustomContainer)
EndUpdate Ends a batch update and refreshes the element containers in the hosted page. (inherited from TTMSFNCWXCustomContainer)
ExecuteJavaScript Runs the given JavaScript in the hosted page and optionally reports the result. (inherited from TTMSFNCWXCustomContainer)
ExecuteJavaScriptSync Runs the given JavaScript in the hosted page and returns its result synchronously. (inherited from TTMSFNCWXCustomContainer)
ShowDebugConsole Opens the developer debug console for the hosted page where supported. (inherited from TTMSFNCWXCustomContainer)

Events

Name Description
OnControlInitialized Occurs once the embedded view has finished initializing and is ready to receive content and scripts. (inherited from TTMSFNCWXCustomContainer)
OnCustomEvent Occurs when the hosted page raises a custom event that is not handled by a matching element action. The handler receives the event payload. (inherited from TTMSFNCWXCustomContainer)