Window: Message nodes support styles

Styles can now be applied to MESSAGE and ERROR statements.

Support for message styling has been added in 2.30. When using the MESSAGE or ERROR statement, you can customize how the information is displayed. The AUI Tree defines ERROR and MESSAGE as the same node Message, so GDC 2.30 introduced new pseudo-selectors Message:error and Message:message. Now it is possible to:

Supported Style Attributes are:

Example: 4st file:
<Style name="Message:error">
  <StyleAttribute name="textColor" value="red" />
  <StyleAttribute name="fontWeight" value="bold" />
</Style>
<Style name="Message:message">
  <StyleAttribute name="textColor" value="blue" />
</Style>
<Style name="Message.yellow">
  <StyleAttribute name="textColor" value="yellow" />
</Style>
Table 1. MESSAGE and ERROR examples
Statement Result
MESSAGE "This is a message" The figure shows a screen shot of a message with text in blue.
ERROR "This is an error" The figure shows a screen shot of an error with text bold and red.
MESSAGE "This is a message" ATTRIBUTES( STYLE="yellow" ) The figure shows a screen shot of a message with text in yellow.
ERROR "This is an error" ATTRIBUTES( STYLE="yellow" ) The figure shows a screen shot of an error with text in yellow.
Note: Similar to simple fields, tty attributes have a higher priority than styles. By default, ERROR has the tty attribute REVERSE, which explains why ERROR messages have a REVERSE background even when using styles.