Skip to main content
A newer version of this page is available. .

TdxAlertWindowManager.OnDragBegin Event

Enables you to prohibit performing a drag-and-drop operation with an alert window.

Declaration

property OnDragBegin: TdxAlertWindowManagerDragBeginEvent read; write;

Remarks

Sender specifies the alert window manager.

AAlertWindow specifies the alert window to be dragged.

Pass False as the AAllow parameter to prohibit performing a drag-and-drop operation. Otherwise, a drag-and-drop operation starts and the OnDragMove and OnDragEnd events are then fired to track its progress.

The following code snippet demonstrates how to handle the OnDragBegin event to let end-users drag only pinned alert windows.

procedure <Form>.<dxAlertWindowManager>DragBegin(Sender: TObject; AAlertWindow: TdxAlertWindow; var AAllow: Boolean);
begin
  AAllow := AAlertWindow.Pinned;
end;

You can handle the OnDragBegin event in combination with other mouse tracking events (OnMouseDown, OnMouseUp, OnMouseEnter, OnMouseLeave, and OnMouseMove).

See Also