opencard and visual effect
Ralph DiMola
rdimola at evergreeninfo.net
Tue May 2 12:18:34 EDT 2023
The rendering get done after preOpenCard completes. In preOpenCard you can set up your data and geometry before the card is displayed. Try timing from the start of preOpenCard to start the openCard handlers.
Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net
-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Klaus major-k via use-livecode
Sent: Tuesday, May 02, 2023 12:08 PM
To: How to use LiveCode
Cc: Klaus major-k
Subject: Re: opencard and visual effect
Hi Håkan
> Am 02.05.2023 um 17:56 schrieb Håkan Liljegren via use-livecode <use-livecode at lists.runrev.com>:
>
> AFTER!
>
> Create two cards
> Add a button or something on the first card with the code on mouseUp
> visual effect dissolve slow
> go to next card
> end mouseUp
>
> On the second card add a control and the hide it and add the script to the card:
> on opencard
> show control 1
> end opencard
>
> You will then clearly see that the first card dissolves slowly and
> when the transition is done the control appears (no cross-dissolve) The preOpenCard is run before and the openCard is run after.
hm, not sure, I made a test here by myself.
Button to go to next cd with a visual effect:
...
put the millisecs
## go_next is in the stack script and goes to the next card:
## lock screen for visual effect
## set the effectrate to 300
## go next cd
## unlock screen with visual wipe left very slow go_next ...
Then on the "next" cd I scripted:
-----------------------------------
on opencard
put the millisecs into tMillisecs
put CR & tMillisecs after msg
end opencard
-----------------------------------
And I ended with this in the msg:
1683043067873
1683043067877
Only 4 millisecs difference, but with the set effectrate the difference should be at least 300!?
So I guess "opencard" is already sent BEFORE the visual effect, at least according to the above data, right?
Molto mysterioso... :-)
Someone knows exactly?
> :-Håkan
>
>> On 2 May 2023, at 15:06, Klaus major-k via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> Hi friends,
>>
>> quick question:
>> Will "opencard" be sent to a card AFTER the card was navigated to
>> with a visual effect or already during the effect?
>> I cannot tell actually in my stack.
Best
Klaus
--
Klaus Major
https://www.major-k.de
https://www.major-k.de/bass
klaus at major-k.de
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list