Re: [gtk-list] Graphics Context & Drawing with Gdk?



>  As part of a project I'm currently working on I need to display a
>  small plot of signal. I've managed to create a window with a drawing 
>  area, off screen pixmap etc. What I want to do is draw some axes and 
>  labels in one color and plot the data in a another color. 
>  
>  How to I go about setting the different colors for drawing the axes 
>  and then the data itself? Should I just set the colors in one (or more)
>  of the predefined graphics context (dark_gc, mid_gc, light gc etc), or
>  should I create a new GC and use that? 

You should create your own GCs.  It is generally not a good idea to
change the widget's style GCs, because they may be shared among many
widgets.

   Quartic



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