Re: How to draw persistent text (with Pango)?



On Fri, 2007-01-12 at 02:21 +0000, Pedro Castro wrote:
> I'm using Drawable.DrawLayout to draw some text over a widget. The
> problem is, the text is removed when the widget is updated. How to
> make the text persist?

you can't. every time a widget gets an expose event from the underlying
window system, some or all of it is redrawn. this is a basic element of
GTK's design.

you will need to hook into the "expose" signal for the widget in
question, and redraw your text from the signal handler.

--p





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