Visual effect not interrupted

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
thebelg
Posts: 24
Joined: Thu Nov 01, 2012 8:51 pm
Location: Germany

Visual effect not interrupted

Post by thebelg » Thu Nov 23, 2017 8:47 am

On a card I will show an Image with a visual effect.
on openCard
----------
set the visible of image "myImage" to false
send "doShow" to me in 5 seconds
----------
end openCard


on doShow
show image "myImage" with visual effect "dissolve" very slow
end doShow

Wenn a "Click" on a Button on the same card when the "ffect" is running, The Button will not be activated (do something) until the "visual effect" is terminated.
Exist a possibility to bypass this behaviour??

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Visual effect not interrupted

Post by Klaus » Thu Nov 23, 2017 10:57 am

Hi thebelg,

no, unfotunately "visual effects" are completely blocking.


Best

Klaus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Visual effect not interrupted

Post by jacque » Fri Nov 24, 2017 5:25 am

You can do it with a repeat loop that sets the blendlevel from 100 to 0 in steps. Add a "wait 5 milliseconds with messages" inside the loop, which will allow other user actions to work.

Note that if the user action triggers a long handler the loop will be delayed.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

thebelg
Posts: 24
Joined: Thu Nov 01, 2012 8:51 pm
Location: Germany

Re: Visual effect not interrupted

Post by thebelg » Fri Nov 24, 2017 2:31 pm

Thanks a lot. So it works fine for our application.

Regards
Marcel

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”