Default vs. named skins Any skin you create (Apache web server tutorial)
Sunday, July 22nd, 2007Default vs. named skins Any skin you create can be treated as either a default skin or a named skin. Here s the difference: Default skins: Apply automatically to all controls of the same type. For example, Textbox.skin would apply to all Textbox controls in all pages if treated as a default skin. Named skins: Apply only to controls in pages that specifically identify the skin by SkinID in their Properties sheet. If you want to create a default skin, don t give the skin a SkinID attribute. The skin is applied to all controls that use the theme, except controls that request a specific skin by name. Most likely you ll want to create one default skin that applies to all instances of the control you ve styled. To define a specific skin that controls can use, give the skin a SkinID attribute. For example, suppose you want to have two styles of buttons in your site, a regular button as shown at the top of Figure 10-7, and a bold button like the one at the bottom of that same figure. In that figure, the bottom button is selected, and you can see where I ve set its Bold property to True. Figure 10-7: Two Button controls, one boldfaced. Figure 10-6: Sample Textbox.skin skin file. Chapter 10: Using Themes 207
Please visit Domain Name Hosting services for high quality webhost to host and run your jsp applications.