Re: [gtk-list] Put text in pixmap



Ho!
>I'm writing a small program to plot functions (my goal is a mix
>between Xmgr and gnuplot, but that's a long way...). I use a pixmap to
>display the plot, and now I would like to add small pieces of text to
>this pixmap :
>
> ---------------------------------
> |                               |
> |   Plotarea                    |
> |                               |
> |                               |
> |                               |
> |                               |
> ---------------------------------
> 0   10    20     30     40     50  <== How to add these numbers to
>                                        the pixmap ??
>
>I have browsed through documentation / source and as far as I
>have understood GtkLabel and GtkText are not really suited for my
>task. Any suggestions on how to add text to a pixmap (and possibly
>correcting my prejudice about GtkText / GtkLabel) would be greatly
>appreciated,


Well, why not take a look at sources of gstalker which uses the plot just
like yours and displays some text on it (and grid, plots ...).

http://www.pathcom.com/~sstratos

bb4now,
PMC




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