Drop acceptor

A drop acceptor, a target on which the user can drop a dragged item, is defined by deriving from MDropAcceptor. MDropAcceptor is geared toward being mixed into a TView, which provides the spatial specification of the drop site, namely where and how it is visible on the screen and what is its size and shape

When a drag and drop interactor is processing the drop event, it checks to see if the point is contained in a visible area of an existing MDropAcceptor view. If it is, then an event is posted to the view which is internally translated to a virtual AcceptDrop call which receives the dropped item along with the location where the drop occurred. Typically you override AcceptDrop to perform the correct absorption of the dropped item.


[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker