TdxAlertWindowMessageList.Add(string,string,TcxImageIndex) Method
In This Article
Creates a message and appends it to the list.
#Declaration
Delphi
function Add(const ACaption: string; const AText: string; AImageIndex: TcxImageIndex = -1): TdxAlertWindowMessage; overload;
#Parameters
Name | Type | Description |
---|---|---|
ACaption | string | The created message’s caption. |
AText | string | The created message’s content. |
AImage |
Tcx |
Optional. The index of the image associated with the created message. If the |
#Returns
Type | Description |
---|---|
Tdx |
The created alert window message. |
#Remarks
You can call an alert window‘s DeleteCurrentMessage procedure to remove messages from the list. Alternatively, you can call the Clear and FreeAndDelete methods.
See Also