Re: Events & palletes



Jeroen Benckhuijsen, dans le message (.gtk.general:266), a écrit :
> changed often. First we tried to use GDK_DIRECT_COLOR colormaps and
> writing directly to X using gdk_color_change(). After that i found the

You can't choose to use this visual type: you have to use one proposed by
the X server.


> GDK_Color_Context. Is this the right way to create such a custom
> pallete? If yes -> a source code example please, if no-> how to do this?

The easyest way, and I think the recommended way, is to use GdkRGB. You can
hack with the colormaps if you know that your application will be used only
on one sort of computer. But if you need to be portable, that's a bas idea.



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