TdxAlertWindowManager.Close(TdxAlertWindow) Method
Immediately closes a specified alert window and destroys it.
Declaration
procedure Close(AAlertWindow: TdxAlertWindow);
Parameters
Name | Type |
---|---|
AAlertWindow | TdxAlertWindow |
Remarks
Calling this method does the following:
Closes AAlertWindow immediately, without any hiding animation (unlike an alert window’s Close method);
Removes AAlertWindow from the Items collection;
Fires the OnClose event;
Destroys the associated window object.
End-users can close an alert window either by clicking the corresponding caption button or by right-clicking this window if the OptionsBehavior.CloseOnRightClick property is set to True. As a result, the Close method of the alert window will be called.
Use the alert window manager’s OptionsAnimate.CollapseEmptySlots property to enable alert windows to automatically move into empty slots that appear after closing other alert windows, with animation.
Note
An alert window is automatically closed if it is not pinned and its display time specified via the OptionsBehavior.DisplayTime property has run out.