[lazarus] Black clBtnFace fix? was Patch for searchresultsdialog
acjgenius at earthlink.net
Sat Nov 22 16:53:21 EST 2003
this shouldn't be a problem. theoretically the bg will always have a
valid rgb value, but it will not always have a valid pixel.
gc's must have a color with a valid pixel, so we query just in case. I
have no idea why the gc would not be initialized or might be being
queried wrong, but it certainly sound a bit odd.
I am guessing sometimes in kde the colormap passed is not the right one
or some such wierdness so querying fails.... but I don't know for sure.
cause it works for me fine when I tried to go into kde so...
On Sat, 2003-11-22 at 16:37, Tony Maro wrote:
> Bob Wingard wrote:
> > I am running Mandrake 9.2 and have not seen the problem yet and I have
> >tried several themes. I have not downloaded any additional themes so I
> >am just using the stock KDE themes installed with Mandrake. I spend most
> >of my time in Gnome rather than KDE. I will run KDE for a few days and
> >see if I can re-create the problem.
> Remember I'm a GTK noob, but maybe this will help. I pulled some GTK
> theme info from within my app and did some testing.
> Inside GetSysGCValues (from GTKProc.inc,) the color is set to the
> CORRECT value using:
> Result.foreground := Style^.bg[GTK_STATE_NORMAL];
> However, it reaches the following code at the end of that routine and
> zero's the value:
> if (style <> nil) then
> if (style^.colormap <> nil) then
> I looked up the gdk_colormap_query_color function and found this on
> Gnome's site:
> "This function is rarely useful; it's used for example to implement the
> eyedropper feature in GtkColorSelection
> So I have no idea what the goal is with it...
> If I add an exit after the Result.foreground line, everything works
> great. But, I dunno what else this might break...
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.lazarus.freepascal.org/mailarchives
More information about the Lazarus