About Store Forum Documentation Contact



Post Reply 
Gui.dragFinish arguments?
Author Message
rstralberg Offline
Member

Post: #1
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
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
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
Find all posts by this user Quote this message in a reply
rstralberg Offline
Member

Post: #3
RE: Gui.dragFinish arguments?
By current object. Do you mean the dragged object?
01-06-2017 11:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Gui.dragFinish arguments?
No, not the dragged (source), but the object on which you drag (destination).
01-06-2017 11:35 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
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
Find all posts by this user Quote this message in a reply
rstralberg Offline
Member

Post: #6
RE: Gui.dragFinish arguments?
Thanks smile
(This post was last modified: 01-06-2017 11:39 PM by rstralberg.)
01-06-2017 11:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply