TdxAlertWindow.Hide Method
Closes the current alert window and destroys it.
Declaration
procedure Hide;
Remarks
In terms of the alert window API, hiding and closing operations are interchangeable. That’s why calling the Close method is equivalent to the Hide method call.
Calling the Hide method does the following:
Hides the current alert window with the hiding animation (unlike an alert window manager’s Close method, which immediately closes alert windows);
Fires the alert window manager’s OnHide event;
Removes the window from the alert window manager’s Items collection and fires its 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.
Use an 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.