How to make an iPhone button fill
I would like to use some of the custom controls that I use and thought some attractive fills should do the job (maybe part). Like padding on the background of iPhone buttons or Office 2007 ribbon (you may know a few more).
Edit: To clarify things, I don't need a simple gradient fill - there is a Windows API call for that. I'm more interested in how the whole effect is achieved. Here is a link to an article that shows how to do it in PhotoShop, but I want to do it in code.
In particular, the glossy gradient at the top ends in a curve around the middle of the button. I suppose this would need to be done separately and mixed in some way.
Any ideas?
source to share
The "glass" effect is obtained simply by creating a white ellipse about 4 times the tall one, placing it over the image so that it is "glazed" so that the bottom arc is centered on the image, and then alpha blending. I believe this delphi code example will be helpful in doing the final part.
source to share
You can try http://www.tmssoftware.com/site/advsmoothbutton.asp . As far as I know, this control is included in the free Smooth Controls package since D2009. For other Delphi versions, you can buy the TAdvSmoothButton control itself or as part of a control pack.
source to share