Bambookit Home    Bambookit GUI Tutorial

Back    Next   

II. GUI Basics

Chapter 9. Widgets Styles

Foreground Color

Method signature

setForeground = "[color]"
[color] is a 6 digit hexadecimal value

Like fonts, color settings are inherited by widgets from their container parents. Therefore, if you set a foreground color for the widget-containers, that color applies to the foreground color of all widgets and nested containers, unless you override the settings. This also means that if you override the color setting of a nested container, then each of its widgets inherits the new color of that container.


In this example we will be using a button widget

.. setForeground="ffffff"

Back    Next