Newbie question - colors



Hi, I'm new to GTK, but have run into a few problems - I'll post them one by
one to save my confusion

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 ?





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