Page 1 of 1

Cant select objects over image when in pointer mode

Posted: Fri Mar 30, 2018 10:21 pm
by raugert
I use the pointer tool to allow user to move objects around. It worked good so far until I added an image as a background on the card. Until then, I was able to lasso multiple images and move theme around when using the pointer tool. I realize the image I added is also an object, but even if I set the image to "can't select" it doesn't seem to help. I can only select one object at a time. Or I can use the shift key to select multiple objects. The lasso no longer works :?

Maybe there is another way of adding an image as a background on a card that won't interfere with the "lasso" handler ? There's probably another name for that :oops:

Re: Cant select objects over image when in pointer mode

Posted: Sat Mar 31, 2018 1:23 am
by raugert
I have found this solution in an old post, using the backgroundPattern of the card instead of an image on top of the card. Works well.

Code: Select all

set the backgroundPattern of this card to the short id of image 1
Thanks Bernd :D

Re: Cant select objects over image when in pointer mode

Posted: Sat Mar 31, 2018 5:14 am
by dunbarx
A solution is a solution.

But what was the cause of the original problem? Was your selection handler in the card script, and the image blocked messages? In other words, whatever message you used, would passing that message in the image make the process work again?

Craig Newman

Re: Cant select objects over image when in pointer mode

Posted: Sat Mar 31, 2018 5:31 pm
by jacque
I think he's just relying on engine behavior, so there are no messages per se. When the engine sees the pointer over another control, dragging won't work to select until it leaves the control's boundaries. Disabling the image might work, but setting the background pattern is cleaner.

Re: Cant select objects over image when in pointer mode

Posted: Mon Apr 09, 2018 5:22 pm
by raugert
Sorry for the late reply. I didn't check my post for activity.. jacque is right in that I'm using the engine behaviour for grabbing objects. I had put an image on the card and indeed it would block the grab handler (even if i set it to "can't select). I didn't try to disable it. That might have worked, but the set background worked out well for me.