[lazarus] New IDE bugs ?

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Sun Nov 23 08:23:08 EST 2003

On Sun, 23 Nov 2003, Mattias Gaertner wrote:

> > Each system color is a special case. clBtnFace needs a different trick
> > than clWindow.
> > 
> > In this case the problem is the following:
> > 
> > TListBox.OnDrawItem paints with clWindow to paint in the background color
> > of the inner area. A TListBox is in the gtk a gtk_list with a list of
> > gtk_list_item. The paint DC is that of the item, while the background is
> > hardcoded in the gtk as the base[Normal_State] of the gtk_list.
> > 
> > This technique is common in the gtk. The best solution would be to
> > retrieve the current background of the gdkwindow of the gtk_list_item, so
> > we don't have to bother about the specific widget class. But I'm still
> > searching for such function.
> > 
> > If I don't find it, I will add a gtk_list_item specific solution.
> I added the gtk_list_item specific solution.

Checked. Bug seems fixed, in both dialogs.

Great, Thanks !


More information about the Lazarus mailing list