Selecting and applying a background color definition variable

To ensure consistency and "same-look-and-feel" across a variety of forms and components, you can create and apply a set of standard color definition variables for the forms and components in your application. These color definition variables are created and maintained using the Edit Color dialog box. Once created, these background color definition variables are available for use in other forms and components.

Remarque: 
  • To adjust a color definition variable without affecting the definition itself, apply the variable to the form or component and then adjust it in the form or component property sheet (at which point it becomes a custom or modified definition).
  • This procedure assumes that you already have at least one background color definition variable created and available in the system.

To select and apply a color definition from an existing set of color definitions:

  1. With a form open and in Design Mode, select the Form property sheet or the component to which you want to apply the background color definition.
  2. In the property sheet Appearance group, select the Background Color property.
  3. In the right margin, click the ellipsis (...) button.
  4. In the Edit Color dialog box, select one of the color definition variables from the list in the upper left corner of the dialog box.
  5. Click OK.

WinStudio immediately applies the color definition to the form background or the designated component. If you do not immediately see the change, you can click elsewhere on the form to refresh the display.

Notice that the Background Color property field displays V(gbgc_ variableName ), and the Ext. Color attribute fields are populated with the values as specified in the color definition.

Rubriques liées