Skip to main content
Table of Contents

TTMSFNCWXElementContainer.AddAction Method

Adds an action that listens for an event on the given HTML element and adds it to Actions.

API unit family: TMSFNCWXContainer Declaring type: TTMSFNCWXElementContainer

Syntax

FMX.TMSFNCWXContainer.hppPascalC++
function AddAction(AHTMLElementID: string; AEvent: TTMSFNCWXContainerHTMLEvent = heClick): TTMSFNCWXContainerElementAction; virtual;
virtual TTMSFNCWXContainerElementAction* __fastcall AddAction(System::UnicodeString AHTMLElementID, TTMSFNCWXContainerHTMLEvent AEvent = (TTMSFNCWXContainerHTMLEvent)(0x0));

Parameters

Name Description
AHTMLElementID The id of the target HTML element to attach the listener to.
AEvent The DOM event to listen for. Defaults to heClick.

Returns

The newly created action.