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

Visual effect not interrupted

Post by thebelg »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Visual effect not interrupted

Post by Klaus »

Hi thebelg,

no, unfotunately "visual effects" are completely blocking.


Best

Klaus
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Visual effect not interrupted

Post by jacque »

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

Re: Visual effect not interrupted

Post by thebelg »

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

Regards
Marcel
Post Reply