RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.IsDragObject Function

Indicates whether a specified object is a TDragObject descendant.

Pascal
function IsDragObject(Sender: TObject): Boolean;
C++
Boolean IsDragObject(TObject * Sender);

Controls

Use IsDragObject to determine whether the object being dragged in a drag-and-drop or drag-and-dock operation is a specialized TDragObject that represents the dragged control's data rather then the control itself. Use IsDragObject on the Source parameter in an OnDragOver or OnDockOver event handler to determine the type of object being dragged and whether it should be accepted. Use IsDragObject on the Source parameter of an OnDragDrop or OnDockDrop event handler to determine how to interpret the dragged object's data. 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!