Re: Newbie question - colors



"Aubury, Mike" <Mike Aubury astrazeneca com> writes: 
> I understand (from reading what I've found on the net) that setting colours
> can be done from within an rc file - but I really need to do it from a
> program. The program I'm writing compiles legacy 4GL code such as:
> 
> 	DISPLAY "Hello World" TO somewidget ATTRIBUTE(RED)
> 
> So I need to set the foreground colour of the 'somewidget' to red (assume
> for the sake of argument that I'm using an Entry type field here).
> 
> In addition - in the definition of the form, I need to define what colour is
> used when text is input into an entry field.
> 
> Any simple examples ?
> 

http://pobox.com/~hp/gtk-colors.html should help.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]