Fade effect for a Field
Hi all, I want to make a field displaying some status text (Record saved) that fades from invisible to visible, stays for a few seconds and then fades out again. I have seen that there seems to be a way to do this with groups, but could I also do it with a single field? Thanks, Pascal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
RE: Fade effect for a Field
Set the blendLevel of fld 1 to 100 on mouseUp repeat with count = 100 down to 1 set the blendLevel of fld 1 to count wait 2 millisecs end repeat wait 2 seconds repeat with count = 1 to 100 set the blendLevel of fld 1 to count wait 2 millisecs end repeat end mouseUp From: tat...@gmail.com Date: Fri, 16 May 2014 14:38:35 +0200 Subject: Fade effect for a Field To: use-livecode@lists.runrev.com Hi all, I want to make a field displaying some status text (Record saved) that fades from invisible to visible, stays for a few seconds and then fades out again. I have seen that there seems to be a way to do this with groups, but could I also do it with a single field? Thanks, Pascal ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Fade effect for a Field
Hi. Easy. Check out the blendLevel property in the dictionary. Craig Newman -Original Message- From: Pascal Lehner tat...@gmail.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Fri, May 16, 2014 8:39 am Subject: Fade effect for a Field Hi all, I want to make a field displaying some status text (Record saved) that fades from invisible to visible, stays for a few seconds and then fades out again. I have seen that there seems to be a way to do this with groups, but could I also do it with a single field? Thanks, Pascal ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Fade effect for a Field
Hi Pascal, You need this: on fadeControl theLongID repeat with x = 100 down to 0 with messages set the blendLevel of theLongID to x wait 1 millisec with messages end repeat wait 2 seconds with messages repeat with x = 0 to 100 with messages set the blendLevel of theLongID to x wait 1 millisec with messages end repeat end fadeControl usage: fadeControl the long id of fld 1 There are many ways to write the same script. You can adjust it to simply use the number of a field and you can increase the waiting time. You could even use steps to reduce the waiting time, but then you'd have a less smooth effect. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 5/16/2014 14:38, Pascal Lehner wrote: Hi all, I want to make a field displaying some status text (Record saved) that fades from invisible to visible, stays for a few seconds and then fades out again. I have seen that there seems to be a way to do this with groups, but could I also do it with a single field? Thanks, Pascal ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Fade effect for a Field
Hi all, Thanks for the quick answers. I will give them a try. I just found another solution that seems even smaller but less configurable. hide field id 1012 with dissolve show field id 1012 with dissolve Here: https://sites.google.com/a/pgcps.org/livecode/home/disappearing-objects Now I just need to set it up in a way that it doesn't stop the rest of the work that is being done in the background Have a great weekend, Pascal 2014-05-16 14:46 GMT+02:00 Mark Schonewille m.schonewi...@economy-x-talk.com: Hi Pascal, You need this: on fadeControl theLongID repeat with x = 100 down to 0 with messages set the blendLevel of theLongID to x wait 1 millisec with messages end repeat wait 2 seconds with messages repeat with x = 0 to 100 with messages set the blendLevel of theLongID to x wait 1 millisec with messages end repeat end fadeControl usage: fadeControl the long id of fld 1 There are many ways to write the same script. You can adjust it to simply use the number of a field and you can increase the waiting time. You could even use steps to reduce the waiting time, but then you'd have a less smooth effect. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Installer Maker for LiveCode: http://qery.us/468 Buy my new book Programming LiveCode for the Real Beginner http://qery.us/3fi LiveCode on Facebook: https://www.facebook.com/groups/runrev/ On 5/16/2014 14:38, Pascal Lehner wrote: Hi all, I want to make a field displaying some status text (Record saved) that fades from invisible to visible, stays for a few seconds and then fades out again. I have seen that there seems to be a way to do this with groups, but could I also do it with a single field? Thanks, Pascal ___ use-livecode mailing list use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Fade effect for a Field
On May 16, 2014, at 6:49 AM, Pascal Lehner tat...@gmail.com wrote: Hi all, Thanks for the quick answers. I will give them a try. I just found another solution that seems even smaller but less configurable. hide field id 1012 with dissolve show field id 1012 with dissolve Here: https://sites.google.com/a/pgcps.org/livecode/home/disappearing-objects Now I just need to set it up in a way that it doesn't stop the rest of the work that is being done in the background Pascal, I have done this a lot, this works well: command fadeInMsg pText lock screen for visual effect put pText into fld mymessage show fld mymessage unlock screen with visual effect dissolve very fast end fadeInMsg command fadeOutMsg lock screen for visual effect hide fld mymessage unlock screen with visual effect dissolve very fast end fadeOutMsg Then call it like this: fadeInMsg Useful information here. send fadeOutMsg to me in 1000 milliseconds Easy, neat, and non-blocking. HTH Devin Devin Asay Learn to code with LiveCode University http://university.livecode.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode