Handles user dragging button.
procedure DragDrop(Source: TObject; X: Integer; Y: Integer); override;
virtual __fastcall DragDrop(TObject * Source, int X, int Y);
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 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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!