Game Development Community

GUIDragDropCtrl question

by Kevin French · in Torque Game Engine · 12/08/2006 (10:44 pm) · 1 replies

Just wondering if the following can be prevented:

I am dragging one DragDrop ctrl onto another. Within the OnDroppedUpon event for the target DragDrop control, I am setting a PNG for the image. The problem is the source image is being placed on the target control as well.

I found a field copySource and set that to 0 believing that would take care of the problem. Unfortunately, that didn't help. If I click on the target control, the PNG that I want becomes visible and the source PNG goes away.

Any ideas?


On the same type of control, another issue has risen. My onDroppedUpon function worked fine for a little while and then all of a sudden it no longer recognizes the event. It still recognizes the click events however. Any ideas on this?

#1
12/21/2006 (7:02 am)
Kevin,

I have used that control before, but I ended up modifying it very heavily for those reasons. The control is a great resource, but requires modification for true usage.

Vince