Page 1 of 1

Visual effect not interrupted

Posted: Thu Nov 23, 2017 8:47 am
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??

Re: Visual effect not interrupted

Posted: Thu Nov 23, 2017 10:57 am
by Klaus
Hi thebelg,

no, unfotunately "visual effects" are completely blocking.


Best

Klaus

Re: Visual effect not interrupted

Posted: Fri Nov 24, 2017 5:25 am
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.

Re: Visual effect not interrupted

Posted: Fri Nov 24, 2017 2:31 pm
by thebelg
Thanks a lot. So it works fine for our application.

Regards
Marcel