How to customize the 3D rendering of custom shaped buttons
3D Button API comes with several kinds of 3D rendering but, in some case, there could be the need to render the buttons using a more sophisticated 3D approach, so there is the possibility to provide a custom 3D rendering using bitmaps created with specific graphical applications like Adobe PhotoShop™ or others: the strength of this kind of approach is the fact that you will have the possibility to provide the Caption text with your preferred settings at both design-time and runtime.
Now, suppose you need to have a button that must have the following 3D rendering in Normal state:
and the following 3D rendering when the mouse is over the button (or when the button is pressed):
As you may know, starting from version 2 of the SDK, custom shaped buttons can be created using also color bitmaps, so we can use the first picture as a mask for creating our custom shaped button: when you create a mask, you must keep in mind that the color of the bitmap left top pixel will be managed as "transparent", so we must be sure that this color will not be present inside the part of bitmap that will be used to determine the button shape.
Inside the previous pictures the pure yellow color is not present, so we can apply the yellow color to the bitmap portion that will be considered as "transparent": this task can be easily performed using a simple graphical application like Microsoft Paint.
Now we have all the elements needed to create our custom shaped button
Set the Shape property to Custom (5).
Set the Picture property to Picture #1.