Results 1 to 4 of 4

Thread: VB6 Easing-Functions (a more powerful alternative to AnimateWindow)

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,454

    VB6 Easing-Functions (a more powerful alternative to AnimateWindow)

    For those who never heard of Easing-Functions, they are used in all kind of
    animation-scenarios - these days most often for Browser-(js)Widgets and -Effects.

    Here's a link which describes them (with a nice Overview-Chart, which animates its Images on MouseOver):
    http://easings.net/en

    The underlying math is not that difficult - and I've encapsulated the most interesting Easing-Methods in a little Class.

    This Class now also contains an 'Animate'-Method, which you can hand a Control,
    a Property-Name, and PropStart - PropEnd-Values, you want to animate (over a given Duration).

    For that 'Animate'-Method the little cEasing-Class now makes use of an internal cTimer-Class
    (for which I've choosen the first one I was able to find in the CodeBank that supported an Event):
    http://www.vbforums.com/showthread.p...ule-2008-06-15

    Here is what it looks like in action (animating two Control-Properties at once - the Top- and the Alpha-Property):



    Here is the Source-Code: http://vbRichClient.com/Downloads/Easing.zip

    Have fun with it...

    Olaf
    Last edited by Schmidt; May 25th, 2017 at 07:32 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width