1 mainstack and 2 substacks opened in the same time ?

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: 1 mainstack and 2 substacks opened in the same time ?

Post by jmburnod » Sun Dec 31, 2017 6:10 pm

No mouseDown or mouseUp? Is the image empty?
Image is not empty and no paint controls (btns with cantselect or not) send no message
Mouseenter and mouseleave are sent by images only
https://alternatic.ch

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: 1 mainstack and 2 substacks opened in the same time ?

Post by jmburnod » Wed Jan 03, 2018 1:47 pm

I tested mouseenter/mouseleave to trap it and set the tool to browse/brush.
Good new it works on iOS
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: 1 mainstack and 2 substacks opened in the same time ?

Post by FourthWorld » Wed Jan 03, 2018 2:18 pm

At what point are mouseEnter and mouseLeave sent in an OS that has no mouse?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: 1 mainstack and 2 substacks opened in the same time ?

Post by jmburnod » Wed Jan 03, 2018 3:25 pm

At what point are mouseEnter and mouseLeave sent in an OS that has no mouse?
I get the location of contact point of my finger for both. I the loc is within the rect of my image, and it seems a mouselave is sent to the image.
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9801
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: 1 mainstack and 2 substacks opened in the same time ?

Post by FourthWorld » Wed Jan 03, 2018 4:20 pm

Thanks. I'm assuming mouseEnter is sent before mouseDown, yes? It would never have occurred to me to try the mouse position messages, but I can see cases where they can be useful.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: 1 mainstack and 2 substacks opened in the same time ?

Post by jmburnod » Wed Jan 03, 2018 6:44 pm

mouseEnter is sent before mouseDown, yes?
Yes.
it seems a mouselave is sent to the image.
Yes. When the mouseloc is outside the image, no mouseleave after a mouseup on image.
This works with brush, eraser, bucket, spray tools
Unfortunately this doesn't work with select and dropper tools
https://alternatic.ch

Post Reply

Return to “iOS Deployment”