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

TdxCustomTileControl.OnGroupDragOver Event

In This Article

Enables you to prevent end-users from dropping a dragged tile group at a specific position within the control.

#Declaration

Delphi
property OnGroupDragOver: TdxTileControlGroupDragOverEvent read; write;

#Remarks

This event occurs when dropping the dragged tile group anywhere within the control. You can assign False to the AAccept parameter within the OnGroupDragOver event handler to forbid an end-user to place a group at the currently highlighted drop position:

The dropped group automatically returns to its initial position if you made the current drop position unavailable within the event handler. For instance, you can forbid end-users to place a dragged group between the first and second groups within the control:

procedure TMyForm.dxTileControl1GroupDragOver(Sender: TdxCustomTileControl; AInfo: TdxTileControlDragGroupInfo; var AAccept: Boolean);
begin
  if AInfo.CurrentIndex = 1 then  // If the current group drop position is the second from the start...
    AAccept := False;  // Forbids an end-user to drop a group here
end;

Refer to the TdxTileControlGroupDragOverEvent procedural type description for detailed information on all parameters accessible within an OnGroupDragOver event handler.

See Also