In case anyone is interested, I uploaded the code for a UITimer module:

        <http://www.synergyfarmsolutions.com/styled/index.html>

It can be used to set up and manage a few different timer types in 4D forms 
including one for handling animations. The animations are set up declaratively 
by telling the module where you want an object to end up (relative to its 
current position or a specific place), what size you want it to be (again, 
relative or specific), and how long you want it to take in seconds. You can do 
this for multiple objects, each with their own parameters. Then just tell the 
animation to start and it magically does it. You can also chain animations 
together so one starts after another. It is also easy to add callbacks that 
fire on each animation step.

If you download the structure, a couple other modules were included for 
support. One of them is for programmatically creating constants. For some 
strange reason I feel better creating constants directly in code rather than 
using a visual tool. Anyone interested in that is welcome to use it as well.

The uploaded structure is in v16, but you can probably back port it to v15r5. 
I’m not sure about before that.

In the Explorer window, you’ll find a __README method which should get you 
started. Feel free to ask me questions and I’ll do my best to answer them.

--
Cannon Smith
Synergy Farm Solutions Inc.
Hill Spring, AB Canada
403-626-3236
<[email protected]>
<www.synergyfarmsolutions.com>


> On Jan 7, 2017, at 9:18 PM, Cannon Smith <[email protected]> 
> wrote:
> 
> - UITimer. For making it easier to work with timers, especially for 
> declarative animation of UI objects.

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to