You can use Cascading Style Sheets while developing WebFOCUS Maintain forms. Cascading Style Sheets enable you to format the appearance of your forms using one separate file, rather than having the formatting information appear through all of your files.
The formatting information for a form or control comes from one of three places, in the following order of precedence:
You can use all of these types of styling in the same Maintain form, allowing for powerful and flexible styling capabilities.
You can apply a style sheet using the CSSName property in the Properties sheet of the form.
Note: The referenced style sheet must be included in your project.
To apply a style sheet to your form using Maintain code, place the following in your procedure:
Winform Show_Inactive form Winform Set form.CSSname TO stylesheet; Winform Show form
The form and all the controls in the form that have their properties set to Default, except for the Grids, use the default settings from the style sheet.
Assuming you have already applied a style sheet to your form, you can apply a class to any control on your form using the following syntax:
Winform Set form.control.CSSCLASS TO classname;
The control inherits the characteristics of the class as specified in the style sheet. This means that all of the properties of that control that are set to Default use the setting for that class in the style sheet.