No way to prevent clicks on a button

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: No way to prevent clicks on a button

Post by FourthWorld » Thu Jun 27, 2013 6:39 pm

Mark wrote:FlushEvents is incompatible with iOS (this thread is in the iOS Deployment forum). This was mentioned two times earlier in this thread.
Thank you for your correction, Mark, but please understand that I had searched for the string "flushEvents" before posting and came up empty. In which two posts was it mentioned, and more on-topic, why is this useful function not available for iOS?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: No way to prevent clicks on a button

Post by Mark » Thu Jun 27, 2013 7:03 pm

Richard,

That's weird, if I search for "flushEvents" on the page, Firefox finds it. Don't ask me why this feature isn't available in iOS. Ask Kevin c.s.

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: No way to prevent clicks on a button

Post by Mag » Thu Jun 27, 2013 8:26 pm

Thanks anyway for your contribution Richard, though not in this case, I still want to read up on this flushEvents function.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10044
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: No way to prevent clicks on a button

Post by FourthWorld » Thu Jun 27, 2013 8:32 pm

Mag wrote:Thanks anyway for your contribution Richard, though not in this case, I still want to read up on this flushEvents function.
If it seems useful you may also consider filing a bug report to have that language feature enabled for mobile platforms; I couldn't find any outstanding issues for flushevents reported there:
http://quality.runrev.com/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Mag
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 802
Joined: Fri Nov 16, 2012 10:51 pm

Re: No way to prevent clicks on a button

Post by Mag » Thu Jun 27, 2013 8:37 pm

Thanks Richard.

PS
Just to add a new information...

Card 1
Button "go to card 2"
Button "cover button" -- it covers the button below while the mergAV control is created

Card 2
Button "3"

Clicking 4 times in the location of button "go to card 2" when the button "cover button" is displayed happens this:

As soon as the control is created, you go in the next card and button 3 gets mouseUp 3 times

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: No way to prevent clicks on a button

Post by Mark » Thu Jun 27, 2013 9:38 pm

Hi,

I don't think this is a LiveCode bug. This much more seems like a Monte bug ;-) Have you reported this issue to him already? He might be able to give you some more insights into what is happening. Something seems to be locking the messages until after the control is created.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: No way to prevent clicks on a button

Post by monte » Sun Jun 30, 2013 1:04 pm

Hmm... Thanks Ivan for alerting me to this thread.

I'm not positive there's a bug here. It's standard engine behavior for messages to be queued while blocking commands are running.

It's a long thread and I might have missed something important but I'm wondering what the issue is with hiding the controls until the command returns. If you can isolate the problem then please send me a stack so I can test here.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: No way to prevent clicks on a button

Post by Mark » Sun Jun 30, 2013 1:20 pm

Monte,

There is no reason to think that any commands are blocking the mouseDowns/mouseUps, except for your external. Perhaps you want to have a look at the project?

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

monte
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1564
Joined: Fri Jan 13, 2012 1:47 am
Contact:

Re: No way to prevent clicks on a button

Post by monte » Sun Jun 30, 2013 3:20 pm

I'm more than happy to take a look Mark once I can define the problem. At the moment it appears that the problem could be stated as "a blocking command displays standard blocking behavior". So I'm not sure what to fix there.
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

Post Reply