mgordon 47 posts since
Oct 17, 2007
1.
Re: Step-by-step guide to build a skinnable applet Mar 24, 2008 7:28 AM
To use your style sheet you need to delegate to the library in your project manifest, import the library, and call install-style-sheet.
1. Delegate to the styled controls library. You can use the Add Delegate to... command on the Project menu in the IDE or add a delegate-to like the following to the manifest file (usually called manifest.mcurl). The location may differ depending on where you put the library files.
{delegate-to COM.CURL.GUI.STYLED,
location = "../libs/COM.CURL.GUI.STYLED-6.0-pcurl-en/manifest.mcurl",
version = "6.0"
}
2. In your applet, import the styled controls package and call install-style-sheet:
{import * from COM.CURL.GUI.STYLED-CONTROLS}
{install-style-sheet {url "my-stylesheet.scurl"}}
There are more examples in the documentation that comes with the library. Use the Install Documentation command from the Help menu in the IDE to install it. There is more about this on the
styled controls library page. It also describes what you can put in the style sheet. Let us know if you have other questions.