Styles
Styles
Styles
v.8.20
© 2020 Ing. Punzenberger COPA-DATA GmbH
Distribution and/or reproduction of this document or parts thereof in any form are permitted solely
with the written permission of the company COPA-DATA. Technical data is only used for product
description and are not guaranteed properties in the legal sense. Subject to change, technical or
otherwise.
Contents
2 Styles ............................................................................................................................................................. 4
GENERAL HELP
If you cannot find any information you require in this help chapter or can think of anything that you
would like added, please send an email to documentation@copadata.com.
PROJECT SUPPORT
You can receive support for any real project you may have from our customer service team, which
you can contact via email at support@copadata.com.
2 Styles
Styles make it possible to do the following with graphic properties of screen elements:
Extract in frames of style groups
Administer in style groups
To assign them to other elements
Styles are administered in the local project and the global object. When extracting a style group from
an element, it is possible to select whether the style should be saved in the local project or the global
project.
4 | 28
Style types
STYLE GROUPS
When extracting styles, all supported design properties of an element are extracted and saved in a
style group.
Create new Style group Allows the creation of an empty style group. The newly-added
style group is:
Named "Style Group" by default
Shown at the end of the list
Selected automatically
3 Style types
You can create the following styles and link them to Static elements as well as Dynamic elements.
Not every property is available for every element:
5 | 28
Style types
Element border -- X
Scale -- X
Value display -- X
Key:
X: available
6 | 28
Style types
3.3 Fill
The Fill style type is available for all elements that support fill.
If a color gradient is configured in the filling style, the fill color is used for coloring with elements that
do not support color gradient.
7 | 28
Style types
LIMITATIONS
For a project with the Windows CE project property activated or the Windows basic setting for the
Graphics quality property, the following is applicable:
Only corners, circles and segments of a circle and have a gradient color.
The gradient color can only be defined using the properties for brightness values.
The properties of the Color gradient group are deactivated for all elements when compiling.
Transparencies are deactivated.
COLOR SETTINGS
The following is applicable for color properties:
Static colors: These are always saved in the style directly.
Color palettes: Either colors from color palettes from the local project or the global project
can be used; in doing so:
The color palettes should be in the same project as the one in which the style is created
If there are color palettes in both projects, the colors of the global projects are
overwritten by the colors of the local project
Hint
Use color palettes either from the local project only or from the global project
only and create the styles in the corresponding project.
3.4 Glow
The Glow style type is available for all elements.
8 | 28
Style types
3.5 Padding
The Padding style type is available for all elements that support padding.
3.6 Line
The Line style type is available for all static elements that support lines.
Exception: Static text.
COLOR SETTINGS
The following is applicable for color properties:
Static colors: These are always saved in the style directly.
Color palettes: Either colors from color palettes from the local project or the global project
can be used; in doing so:
The color palettes should be in the same project as the one in which the style is created
If there are color palettes in both projects, the colors of the global projects are
overwritten by the colors of the local project
9 | 28
Style types
Hint
Use color palettes either from the local project only or from the global project
only and create the styles in the corresponding project.
10 | 28
Style types
Angle [°]
Shadow size [%]
3.8 Scale
The Scale style type is available for all elements that support scales.
3.9 Text
The text style type is available for the static text element, as well as for most dynamic elements.
11 | 28
Style types
Properties for the Dynamic Text ElementProperty group, only available for the dynamic
text element
Hidden input
Masking character
FONTS
For styles, fonts from the local project or the global project can be used.
The linked text style can be overwritten by settings in the local project if:
The project has a different setting for Font lists than the global project does.
The font list of the global project is overwritten by the local project
Hint
Use font lists either from the local project only or from the global project only
and create the styles in the corresponding project.
12 | 28
Style types
13 | 28
Create new style group and new style
You can find a detailed description of the tool bar in the tool bar and context menu detail view (on
page 15).
14 | 28
Create new style group and new style
Symbol/Command Description
Create a new style group Allows the creation of an empty style group. The newly-added
style group is:
Named "Style Group" by default
Shown at the end of the list
Selected automatically
Paste Pastes the content from the clipboard. If an entry with the
same name already exists, the content is pasted as "Copy
of...".
Selection:
Expand all
Collapse all
Expand selection
Collapse selection
15 | 28
Extracting style and incorrect validation
Symbol/Command Description
Edit selected cell Opens the selected cell for editing. The binocular symbol in
the header shows which cell has been selected in a
highlighted line. Only cells that can be edited can be selected.
Replace text in selected column... Opens the dialog to search and replace texts for the selected
column.
EXTRACT STYLES
To extract a style:
1. In the Editor, highlight the element whose style you want to extract.
2. Select the Create style group from element command from the context menu.
The Extract styles from element dialog is opened.
3. Supported properties of the element are extracted and created as a new style group with the
given name in the local project or global project in the Styles node. The entry is validated
and a balloon is shown in the event of an invalid name.
For this, the following applies:
The style group contains all supported properties as individual styles.
Properties that are not available in the source object are created with the corresponding
default values.
The properties that are supported depend on the Style type (on page 5) and original
element.
16 | 28
Extracting style and incorrect validation
INCORRECT VALIDATION
Information
Names:
Must be unique for style groups and styles within a style group,
must not be empty
must not consist of spaces only
Must not contain one of the following characters: / \ . : * ? < > | " ' # %
@
17 | 28
Administer styles
6 Administer styles
<You administer CD_PRODUCTNAME> styles in the local project and global project in the Styles
node.
All style groups are displayed in the detail view of the styles node. These contain the individual styles
in a tree view.
The elements can be sorted and filtered according to each column.
Note: The time shown in the last changed column does not relate to the change of the style but the
time at which the file in which the style is contained was saved.
The properties of the selected style are shown in the properties window. These can be edited there.
18 | 28
Administer styles
Changes are saved as soon as the field is left or after confirmation with the Enter key.
Each change has an effect on all elements that are linked to this style.
Information
Names:
Must be unique for style groups and styles within a style group,
must not be empty
must not consist of spaces only
Must not contain one of the following characters: / \ . : * ? < > | " ' # %
@
In doing so:
The cross-project copying and pasting of style groups and styles is supported
The copying and pasting of styles from style groups to other style groups is supported
Multiple selection is supported
19 | 28
Administer styles
Note: If styles are deleted, the previously-set values are restored for the properties with which they
were linked. The property of the style shows No style linked.
20 | 28
Linking styles and style groups
If there is already a style in the project that has the same ID as a style to be imported and is
an element of another style group, no import is carried out and a corresponding warning is
shown.
Note: Not all elements support all properties of a style. Only supported properties are ever assigned.
To assign an element a style or a style group, use:
Drag&Drop
Note: Linked styles are shown in the respective property with the following syntax:
stylegroupname.Stylename.
LINK RULES
The following is applicable for the linking of styles or style groups:
Only styles that correspond to the target property are linked.
When linking style groups, only styles that are supported by the properties of the element
are linked.
Hint
Select several styles from the same style group in order to carry out multiple
linking with an element.
21 | 28
Linking styles and style groups
CONTEXT MENU
1. Highlight the element.
A style group must already be linked for the element.
2. Navigate to the desired group in the properties.
3. Right-click on the property
4. Select Derive all properties from style group:
For this element, all properties that are available in the style group are linked.
22 | 28
Linking styles and style groups
Hint
Multiple selection is supported for linking styles and and style groups using the
style selection (on page 26) dialog or the context menu (on page 23) of the
property.
As an example, the style StyleGroup.LineStyle in the global project is shown for the element properties
in the local project with the name (g)#StyleGroup.LineStyle.
As soon as there is a manual text amendment in the properties field of the linking, this prefix is
removed and the linking is amended or is lost.
In doing so:
if a style or a style group with the name entered is found in the local project, this is used
if no style or style group with the name entered is found, the text <No style linked> is shown
Hint
Link styles from the global project by means of Drag&Drop (on page 21) or the
dialog for style selection (on page 26).
Available commands:
23 | 28
Linking styles and style groups
Derive [style] from style The style of the style group If no style group is linked to the
group linked to the element is linked element, the original configuration
for the selected property. of the element is used.
Detach [style] from style Detaches the linking of this The property is deleted from the
group property to a certain style of a style group. A different style can
style group. All other properties be linked to this property. If no
retain their linking. other style is linked, the values
configured in the original style
The arrow symbol, which shows
group are used.
the linking, is removed.
All other properties retain the
linking to the original style group.
Derive all properties from For this element, all properties All properties that are linked
style group that are available in the style overwrite pre-existing values. If
group for this are linked. these are amended in the style
group, they are also amended
An arrow symbol on the right
here.
next to the input field of the
property shows that there is a
linking.
Detach all properties from All linkings that are derived The configured values remain. If
style group from this style group are the values is the style group are
detached. amended, the change is not
accepted for these elements.
The arrow symbol that shows
the linking is removed. All linked properties of this
element are detached. The
properties can be linked to
another style group or to other
styles.
24 | 28
Linking styles and style groups
REPLACE VALUES
You have several possibilities for replacing a value:
Detach the style from the style group using the context menu of the property.
Assign a new style to the property.
Link a new individual style to the property by means of Drag&Drop.
Select a different style for the property using the selection dialog (on page 26).
7.4 Limitations
Styles are administered in the local project or global project and use settings of this project. In doing
so, the following should be noted:
COLOR SETTINGS
The following is applicable for color properties:
Static colors: These are always saved in the style directly.
Color palettes: Either colors from color palettes from the local project or the global project
can be used; in doing so:
The color palettes should be in the same project as the one in which the style is created
If there are color palettes in both projects, the colors of the global projects are
overwritten by the colors of the local project
25 | 28
Style selection dialog
Hint
Use color palettes either from the local project only or from the global project
only and create the styles in the corresponding project.
FONTS
For styles, fonts from the local project or the global project can be used.
The linked text style can be overwritten by settings in the local project if:
The project has a different setting for Font lists than the global project does.
The font list of the global project is overwritten by the local project
Hint
Use font lists either from the local project only or from the global project only
and create the styles in the corresponding project.
Information
Only style groups and styles that can be linked to the element from which the
dialog was opened are offered.
26 | 28
Style selection dialog
Parameter Description
List of projects Display of the global project and the local project.
27 | 28
Style selection dialog
CLOSE DIALOG
Options Description
OK Applies settings and closes the dialog.
LINK RULES
The following is applicable for the linking of styles or style groups:
Only styles that correspond to the target property are linked.
When linking style groups, only styles that are supported by the properties of the element
are linked.
DETACH LINKING
To detach the linking of a style or style group:
1. Open the dialog.
2. Click on No selection.
The style or the style group is removed from the property and the dialog is closed. The
selected elements contain the properties of the last style that was linked.
28 | 28