Up

_gtkWidgetTextcolorSet

_gtkWidgetTextcolorSet defines the text color of a Widgets object.
In a GTK 3 environment, _gtkWidgetForegroundSet could be called instead.

Prototype : fun [* ObjColor I] *

See also

Example

typeof win = ObjGtkWindow;;
typeof box = ObjGtkBox;;
typeof text = ObjGtkText;;

fun CBdestroy (obj, u_param, eventName)=
	_fooS eventName;
	_gtkMainQuit;
	0;;

fun main ()=
	_showconsole;
	
	set text = _gtkTextFullNew _channel;
	_gtkTextStringSet text "Hello World !";
	_gtkWidgetTextcolorSet text _colorNew _channel 65350 0 0 0 STATE_NORMAL;
	_gtkWidgetFontSet text _gtkFontNew _channel "Arial Bold 24";
	
	set box = _gtkBoxNew _channel 1 5 VERTICAL;
	_gtkBoxAdd box text 1 1 5 1;
	
	set win = _gtkWindowNew _channel nil "test text color" 0;
	_gtkContainerAdd win box;
	_gtkWidgetShowAll win;
	_gtkWindowCBdestroyed win @CBdestroy 10 SIGNAL_PROPAGATE;

	_gtkMain;
	0;;