New topic: custom progressbar - Painting inside roundrect + animation
<http://forums.realsoftware.com/viewtopic.php?t=47403> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message eduo Post subject: custom progressbar - Painting inside roundrect + animationPosted: Mon Mar 25, 2013 6:15 pm Joined: Sun Jun 24, 2007 12:24 pm Posts: 427 Location: Madrid Hello. I was looking at creating my own custom progressbar and while the part about filling and labeling is easy, I am stumped at how can I paint a pattern inside the boundaries of the shape of the progressbar. The progressbar is a roundrect with a 20 pixel corner radius. On the outside it's transparent (so the window itself shows through), on the inside I would normally either have it start filling up or have it blank. But the "indeterminate" state is stumping me. I wanted the inside to be a sort slanted stripes moving and have found I can't find a way to draw inside the roundrect that doesn't muddle the rounded corners. I thought I could intersect the shapes but rects are rectangular, so I'm not getting anywhere there. Any ideas? Bonus Question: What's the recommended way to animate the striping _________________ ---- http://eduo.info/ http://gallery.eduo.info/ http://twitter.com/eduo/ Top charonn0 Post subject: Re: custom progressbar - Painting inside roundrect + animatiPosted: Mon Mar 25, 2013 6:19 pm Joined: Mon Apr 02, 2007 2:08 am Posts: 1173 Location: San Francisco, CA, USA Maybe some of the ideas in this thread will be useful. _________________ Boredom Software Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
