setActiveIconTheme()

This functions sets an icon theme.

Synopsis

setActiveIconTheme(string theme);

Parameters

Parameter Description
theme The icon theme to be set.

Description

This function allows you to set an icon theme at runtime.

When setting the new icon theme during runtime, the Online change with setActiveIconTheme() attempts to adjust the size of the newly loaded pixmap of the new theme to the size of the old pixmap. This happens if the Shape defines the pattern to use the "fit" mode or is already a scalable vector image (svg, wmf).

If an icon is used via a script, the path must always be the unthematic sub-path below the pictures directory, e.g. "pic.png", which is converted internally to e.g. "themes/one/pic.png" if required. A subdirectory, e.g. "subdir/pic.png", is converted internally to "themes/one/subdir/pic.png".

Icons within WinCC OA toolbars are not changed in already opened modules. They will only be changed for newly opened modules. I.e: a new GEDI window has to be opened to see the changed icons there.

Assignment

Miscellaneous functions

Availability

UI