Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxAlertWindowMessageList.Add(string,string,TcxImageIndex) Method

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.

AImageIndex TcxImageIndex

Optional. The index of the image associated with the created message. If the AImageIndex parameter accepts -1, the message displays no image.

#Returns

Type Description
TdxAlertWindowMessage

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