THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 13/11/2010 at 00:52, xxxxxxxx wrote:
Cinema 4D Version:
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
I am able to do a drag&drop into my dialog, however I cannot detect that the mouse was released over my field.
The BFM_DRAG_FINISHED or the BFM_DRAG_LOST doesn't seem to be correct.
What is the best way of doing this?
I am using Cinema 4D 11.5
if (msg->GetId() == BFM_DRAGRECEIVE)
println ("Drag message ontvangen.");
if (CheckDropArea(DRAGDROP, msg, TRUE, TRUE))
SetString (DRAGDROP, string);
println ("The mouse is in DRAGDROP and dropped.", string);
// The mouse is in drop area.
else println ("Wrong type was dragged.");
//if (msg->GetData(BFM_DRAG_FINISHED)) println ("Finished."); // does not work???
} // end mouse is in drop area.
if (msg->GetData(BFM_DRAG_LOST)) // never seem to get here???
// We are no longer the target of the drag operation.
// Remove or reset any help text/lines.
} // end if (msg->GetId() == BFM_DRAGRECEIVE)
} // end Message