It is possible to set conditions for components so that when a condition is met, the style will be applied to that component. To modify conditions, proceed to the Conditions dialog in the properties panel of the style designer.
Fig. 1 – Conditions Access
Fig. 2 – Conditions Dialog
Different types of conditions can be combined. If all of the conditions work, the style will be applied.
- Placement – With this condition, a style will be applied hinging on the placement of the component. When set to “equal to,” the component(s) placed on the containers selected in the value field will have the style applied to them. When set to “not equal to,” only the components on containers that weren’t selected in the value field will have the style applied.
Several containers can be selected in the value field.
- Component Type – With this condition, a style will be applied hinging on the type of component.
- Location – With this condition, a style will be applied hinging on the location of the component in the container.
Fig. 3 – Location Options for Location Condition
- Component Name – With this condition, a style will be applied hinging on the name of the component. The following operations are available:
- Equal to – Style is applied to a component that shares the name of entered into the value field.
- Not equal to – Style is applied to a component or components that have names differing from the name entered in the value field.
- Containing – Style is applied to every component that contains the name entered in the value field.
- Not containing – Style is applied to every component that does NOT contain the name entered in the value field.
- Beginning with – Style is applied to every component that is named starting with the name entered in the value field.
- Ending with – Style is applied to every component with a name that ends with the name entered in the value field.
Fig. 4 – Component Name Operations
- Nested Level – With this condition, a style will be applied hinging on the nesting level of the containers that the components are placed in. The nesting level can be specified in the value field (maximum 100). The following conditions can be applied:
- Equal to – Style is applied when the container’s nesting level is equal to the value entered in the value field.
- Not equal to – Style is applied when the container’s nesting level is NOT equal to the value entered in the value field.
- Greater than – Style is applied when the container’s nesting level is greater than the value entered in the value field.
- Greater than or equal to – Style is applied when the container’s nesting level is greater than or equal to the value entered in the value field.
- Less than – Style is applied when the container’s nesting level is less than the value entered in the value field.
- Less than or equal to – Style is applied when the container’s nesting level is less than or equal to the value entered in the value field.
Fig. 5 – Nested Level Operations
Nested Level can only be selected if Placement has been selected.