Overview

A skin is a series of images that is applied to the caption line, menu line, and border areas of each form to provide an enhanced look and feel to each form. The skin can also define images for most controls to further enhance the look and feel of forms.

Each base control class with the ability to define a skin has an equivalent skin class associated with it. As these classes are defined in the RootSchema, skin data is global to all schemas. See also the JadeSkinRoot and JadeSkinEntity classes in Chapter 1 of the JADE Encyclopaedia of Classes and "Maintaining Skins Using Extended Functionality", in Chapter 2 of the JADE Runtime Application Guide.

An application can set a skin that is applied to all JADE forms or controls displayed during the running of that application in the current work session. User applications can enforce a specific skin (for example, a company logo) or they can provide the user with ability to select a preferred skin that is set during the application’s initialize method (by calling the app.setSkin method).

JADE provides a collection of skins for the JADE development environment and a global collection that contains any user-defined skins for all schemas. As JADE must be able to upgrade existing systems by replacing the JADE system files, the skins used by the JADE development environment cannot be updated, and access to user-defined skins is not permitted.

Skins defined in the JADE development environment are stored in the _sysgui class map file and are therefore unavailable in user applications. Conversely, skins that you define for deployed applications are not available in the JADE development environment.

Before you can define a new skin for your applications, a picture file (for example, a .png, .bmp, .jpg, or .gif) must exist for each of the images that you want to specify.

A set of example skins is provided in the examples/skins directory. For details about loading these skins for use in your user application, see the examples/skins/readme.txt file in that directory.

JADE skins provide you with the following functionality.