Vcl.CategoryButtons.TCategoryButtons.DragDrop
Delphi
procedure DragDrop(Source: TObject; X: Integer; Y: Integer); override;
C++
DYNAMIC void __fastcall DragDrop(System::TObject* Source, int X, int Y);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.CategoryButtons.pas Vcl.CategoryButtons.hpp |
Vcl.CategoryButtons | TCategoryButtons |
Description
Handles user dragging button.
The Source parameter is the object that was dropped onto the button group. The X and Y parameters are the mouse coordinates where the object was dropped.
This method handles reordering TButtonCategory and TButtonItem objects in a TCategoryButtons object in response to user drag-and-drop operations. Users can drag TButtonCategory objects to reorder them. They can also drag TCategoryButtons objects to reorder them or move them to another category. Pressing Ctrl while dragging copies the button. This method calls RemoveInsertionPoints to remove insertion points.