GEOS SDK TechDocs
|
|
4.1 Supporting Quick-Transfer
|
4.3 Quick-Transfer Data Structures
Although applications must handle several situations to support the quick-transfer mechanism, the procedure involved in a quick-transfer is quite simple. The steps of how a quick-transfer operation is performed are outlined below:
MSG_META_START_MOVE_COPY
to the object under the pointer image.
ClipboardStartQuickTransfer()
to initiate the quick-transfer mechanism. It then builds the transfer item just as it would if the user had clicked on the Copy trigger in the Edit menu. It then logs the transfer item with the quick-transfer mechanism.
ClipboardSetQuickTransferFeedback()
. If the source object is a visible object in a GenView, it must also send the message
MSG_VIS_VUP_ALLOW_GLOBAL_TRANSFER
to itself to allow the pointer events to be sent to other objects in other windows (because the GenView grabs the mouse on the press).
MSG_META_PTR
should check if a quick transfer is in progress by either checking the passed event flags or by calling
ClipboardGetQuickTransferStatus()
. The object should, in response, provide feedback as to whether it can accept the transfer item or not. It calls
ClipboardSetQuickTransferFeedback()
with the proper feedback signal.
MSG_META_END_MOVE_COPY
from the UI).
ClipboardGetQuickItemInfo()
on the transfer item. If it can handle the item, it calls
ClipboardQueryItem()
, grabs the transfer item, and finally calls
ClipboardEndQuickTransfer()
.
MSG_META_CLIPBOARD_NOTIFY_QUICK_TRANSFER_CONCLUDED
to the source object, informing it about the final outcome of the operation. Some source objects will change shape, shading, or color during a quick-transfer and must know when the transfer is concluded. If the operation is a quick-move, the source must delete the information or object that was moved.
GEOS SDK TechDocs
|
|
4.1 Supporting Quick-Transfer
|
4.3 Quick-Transfer Data Structures