Discussion:
Adding graphic 'Drag Items' in Cocoa
Albert Wallace
2017-02-22 23:43:51 UTC
Permalink
If any of you are well-versed in the graphic aspects of Cocoa, and the current IDE, I would much appreciate any help with replacing the ‘AddItem’ function when dragging a few graphics across a canvas at the same time. I am able to move one at a time, but must do more.

If you can point me in the right direction, thank you!
_______________________________________________

Xojo forum:

https://
emile.a.schwarz
2017-02-23 03:51:40 UTC
Permalink
You do not explain exactly (from my point of view) what you want to do.

 

If you want to drag more than one item in the drag, check AddItem

 

I do not do that with images, but with Listbox Rows.

 

If this is not the answer you are searching, explain a bit more what you want to do.

 

 

Emile

 

 
Message du 23/02/17 00:44
De : "Albert Wallace"
A : "Nug"
Objet : Adding graphic 'Drag Items' in Cocoa
If any of you are well-versed in the graphic aspects of Cocoa, and the current IDE, I would much appreciate any help with replacing the ‘AddItem’ function when dragging a few graphics across a canvas at the same time. I am able to move one at a time, but must do more. If you can point me in the right direction, thank you! _______________________________________________ Xojo forum: https://forum.xojo.com/
_______________________________________________

Xojo
Jon Ogden
2017-02-23 04:16:03 UTC
Permalink
You could always update the left and top properties of the items you want to move based on the movement of the mouse.

Sent from my iPhone
Post by emile.a.schwarz
You do not explain exactly (from my point of view) what you want to do.
If you want to drag more than one item in the drag, check AddItem
I do not do that with images, but with Listbox Rows.
If this is not the answer you are searching, explain a bit more what you want to do.
Emile
Message du 23/02/17 00:44
De : "Albert Wallace"
A : "Nug"
Objet : Adding graphic 'Drag Items' in Cocoa
If any of you are well-versed in the graphic aspects of Cocoa, and the current IDE, I would much appreciate any help with replacing the ‘AddItem’ function when dragging a few graphics across a canvas at the same time. I am able to move one at a time, but must do more. If you can point me in the right direction, thank you! _______________________________________________ Xojo forum: https://forum.xojo.com/
_______________________________________________
https://forum.xojo.com/
_______________________________________________

Xojo forum:

https://forum.xojo

Loading...