Re: [gtk-list] Re: gtktext and other stuff
- From: Patrice Fortier <Patrice Fortier aquarel fr>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: gtktext and other stuff
- Date: Thu, 15 Jan 1998 09:40:15 +0100 (MET)
> > Arun,
> > I have run into a few problems with the background pixmap
> > implimentation. When a line changes size, or you hit "enter", the lines
> > below are moved down with a gdk_draw_pixmap. Background pixmaps are
> > handled specially for the text widget, with it's own pixmap tileing
> > routine. This is done so the pixmap will scroll with the text, instead of
> > the text scrolling over a fixed pixmap. This works until you want to
> > reduce flickering and redraws using the pixmap drawing, destroying the
> > tileing. However, this whole technique leaves somthing to be desired. I
> > think the best thing to do is replace this code. By creating a extra
> > parent window, the text window can be allocated exatly one tile wider and
> > longer than the displayed size, and placed inside the parent window. Then
> > a background pixmap can be set for the window, and a combination of
> > gdk_window_move(s) and gdk_draw_pixmap(s) can be used to scroll with the
> > same effect. I think it would probably even be faster, and less work to
> > code.
I do agree with you on this. less code, faster, and less flickering.
I don't understand why you want to allocate the text window one tile
wider and longer than the parent window (in which you have the pixmap)
though.
Anyway, this is the way to go.
Patrice.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]