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

TdxAlertWindowManager.OnDragBegin Event

In This Article

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

#Declaration

Delphi
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.

Delphi
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