Re: setting color of a progress indicator?
Re: setting color of a progress indicator?
- Subject: Re: setting color of a progress indicator?
- From: Julien Guimont <email@hidden>
- Date: Sun, 28 Apr 2002 18:45:21 -0700 (PDT)
I had the same question 2 weeks ago. I think it can't be done by simply setting something in NSPRogressindicator.
The solution I found, which can be a little more faster, is to make a new NSView subclass et create your progress bar using a rectangle of the color of your choice to bound the rect of your view and use a NSAffineTransform to scale it to the percentage you want. Apply a nice tiff on that with the same scaling and you have a progress bar.
Yes it has no wavy effect in it but, who wants to spend cycle doing that;)... I wish I could.
Do you think there is an API to make little shadow (like the one on window) behind my view, or to make the candy like theme programmaticaly without using tiff?
Thanx
Julien Guimont
email@hidden
www.juggysoft.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.