Re: [gtk-list] (newbie) Setting foreground colors for GCs



"Ian King" <mister@iking.freeserve.co.uk> writes:
> Hi all,
> 
> I have been trying to write a simple program that shows a red
> rectangle on the screen on top of all other windows.  Everything
> works except for the setting of the red color, I have created a
> color struct with the Red value set to full intensity but the color
> shown on screen is white.  Can anyone please tell me where I am
> going wrong, is there something I have omitted?

You have to allocate your color. See the Xlib book by Nye or GDK
chapter in my book (developer.gnome.org/doc/GGAD/)

Havoc



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