LC 9.6.6 oddities when showing/hiding text

J. Landman Gay jacque at hyperactivesw.com
Fri Jan 28 12:29:44 EST 2022


The newer, recommended method may work better for you:

lock screen for visual effect [in rect]
  - - do stuff
unlock screen with visual effect dissolve

This caches the area and allows the engine better control over the effect.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On January 28, 2022 10:51:03 AM William Prothero via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> Craig,
> Tnx, the reason I did the “do” stuff is because I wanted to 
> programmatically vary the speed of the dissolve, initially, but it’s 
> probably not necessary because most of the dissolves are the same. I have a 
> pretty large app and I suspect there is some kind of timing problem because 
> putting in a delay solved some of it. For me, the text fades in, then the 
> field content disappears and leaves a white space where the field was. The 
> background of the field is set to transparent, but I haven’t yet explored 
> setting different options. I will do that today.
>
> Thanks for the comment,
> Bill
>
> William A. Prothero, PhD
> Prof Emeritus, Dept of Earth Science
> University of California, Santa Barbara
>
>> On Jan 28, 2022, at 6:18 AM, Craig Newman via use-livecode 
>> <use-livecode at lists.runrev.com> wrote:
>>
>> Hi.
>>
>> Still annoyed at having to answer in the use-list as opposed to the Forum.
>>
>> I made a new stack with a button an a field. In the button script:
>>
>> on mouseUp
>>
>> hide fld 1
>>
>> put "fld 1" into lFieldRef
>>
>> put  “dissolve" into tEffect
>>
>> put "show "&lFieldRef&" with visual effect "&quote&tEffect&quote into tDo
>>
>> do tDo
>>
>> end mouseUp
>>
>> Works just fine.
>>
>> Why go through all the “do” stuff? Why not just:
>>
>> show fld 1 with visual effect dissolve
>>
>> Craig
>>
>>> On Jan 27, 2022, at 9:12 PM, William Prothero via use-livecode 
>>> <use-livecode at lists.runrev.com> wrote:
>>>
>>> put "show "&lFieldRef&" with visual effect "&quote&tEffect&quote into tDo
>>>
>>> --wait for 1 second with messages
>>>
>>> wait 500 milliseconds with messages
>>>
>>> do tDo
>>
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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