Vcl.CategoryButtons.TCategoryButtons.DragDrop

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also