rstralberg
Member
|
Gui.dragFinish arguments?
Code:
void (*dragFinish()C)(Ptr user, GuiObj*obj, C Vec2 &screen_pos);
What comes in to this callback in Gui.
Is obj the object that the dragged element is dropped on
and screen_pos the drop position?
(This post was last modified: 01-06-2017 11:25 PM by rstralberg.)
|
|
01-06-2017 11:25 PM |
|
Esenthel
Administrator
|
RE: Gui.dragFinish arguments?
If I remember correctly then the obj is the current gui object at the drop location, at screen_pos. It's the destination and not the source.
|
|
01-06-2017 11:33 PM |
|
rstralberg
Member
|
RE: Gui.dragFinish arguments?
By current object. Do you mean the dragged object?
|
|
01-06-2017 11:34 PM |
|
Esenthel
Administrator
|
RE: Gui.dragFinish arguments?
No, not the dragged (source), but the object on which you drag (destination).
|
|
01-06-2017 11:35 PM |
|
Esenthel
Administrator
|
RE: Gui.dragFinish arguments?
To get the source object, you can use Gui.ms if you drag with mouse. But you'll have to check that for sure because I'm writing from my memory.
|
|
01-06-2017 11:38 PM |
|