PDA

View Full Version : Creating the dragdata Object at Will, Revisited (for FGU)



Minty23185Fresh
January 13th, 2021, 16:06
In FGU (and maybe now in FGC) can I create a new dragdata object? Not a clone, but a new one.

I asked this question in 2019 (https://www.fantasygrounds.com/forums/showthread.php?48145-Creating-Cloning-or-Writing-a-Class-for-dragdata) and was told I could not. So I created my own Object (https://www.fantasygrounds.com/forums/showthread.php?48594-On-Demand-(pseudo)-dragdata-Object) and it has worked well for me until FGU :cry:.

I now need to revisit my pseudo dragdata object, or hopefully abandon it and be able to "instantiate" new dragdata objects at will ;).

Moon Wizard
January 15th, 2021, 23:24
No, this is not allowed. You can only use drag data objects provided by the events that trigger them; and they are not guaranteed to exist after the triggering event completes.

Regards,
JPG

Minty23185Fresh
January 16th, 2021, 19:25
Again. Thank you Moon Wizard.