Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1529

Animated Spinner Class [vbRichClient5]

$
0
0
After contributing to the following thread (http://www.vbforums.com/showthread.p...Wheel-Spinning), I thought others might be interested in an animated spinner, so I packaged my code into a class and added a simple demo form that allows you to play around with the parameters in real-time.


Demo Screenshot:

Name:  Spinner7.png
Views: 23
Size:  23.1 KB


Samples:

Name:  Spinners.png
Views: 63
Size:  47.1 KB


Source code:

AnimatedSpinner.zip


Features:
Antialiased
Clockwise/Counter-Clockwise animation
Adjustable Speed of spin in, normal spin, and spin out frames
Number of segments to draw
Size of the spinner
Padding between the edge of the spinner box and the spinner
Base Color of the spinner
Background color of the spinner (including transparent background)
Size of the hole in the middle of the spinner
Total Degrees that the spinner should span
Degrees of margin between segments
Gaussian Blur, optionally clipping blurred edges
Optionally fade segments
Optional animated fade on spin in/out
Optional animated zoom on spin in/out


NOTES
This demo requires the vbRichClient5 framework to be registered on your development system: http://www.vbrichclient.com/#/en/Downloads.htm

This code is free to use for any purpose. No warranties! This code has not been extensively tested, nor is it currently used in any production environment. It is also my first attempt at using the vbRC5 Cairo graphics methods, so there may well be bugs/inefficiencies.

Enjoy!
Attached Images
  
Attached Files

Viewing all articles
Browse latest Browse all 1529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>