updateWindowAttributes()

You can use the consoleLib.updateWindowAttributes() system function to update the active window with the current value of a specified window attribute. If the attribute is one of color, intensity, or highlight, the values of all open windows, not just those of the active window, are updated.

This function is required for Informix® 4GL migration. New EGL users do not need this function, as they can get the same results more easily through other means, such as setting attributes before opening a window.

  consoleLib.updateWindowAttributes(
    attributes WindowAttributeKind in)
attributes
One or more values of the WindowAttributeKind enumeration. For a list of those values, see Enumerations for Console UI.

Example

In the following example, two default window attributes are set:
ConsoleLib.MenuLine = 5;
ConsoleLib.defaultInputAttributes{ color=red };
If you create a new window, that new window uses those new attributes. However, the existing windows are unchanged. The following code changes the menu line for the active window and changes the color for all open windows:
updateWindowAttributes(WindowAttributeKind.MenuLine);
updateWindowAttributes(WindowAttributeKind.Color);

Feedback