setTextColor (GUIUtils)

Versionshinweise

12.2

Code

Groovy
GUIUtils.setTextColor(Color textColor, String... componentNames)

Beschreibung

Ändert die Textfarbe von GUI Komponenten, wie z.B. Beschriftungen, Schalter oder TaskPanes.

Parameter

  • textColor - Die neue Textfarbe, z.B. GUIConstants.COLOR_TEXT oder new Color(0-255 Rot, 0-255 Grün, 0-255 Blau).

  • componentNames - Eine kommaseparierte Liste von internen Komponentnamen, z.B. "MatchCode.Customer" or "Button123".

Beispiele

Groovy
GUIUtils.setTextColor(GUIConstants.COLOR_TEXT, "MatchCode.Customer", "Button123");
GUIUtils.setTextColor(new Color(0, 255, 0), "MatchCode.Customer", "Button123");