Am Dienstag, den 10.01.2006, 15:56 +0100 schrieb Mattias Gaertner:
> On Mon, 09 Jan 2006 02:03:01 +0100
> Marc Santhoff <[EMAIL PROTECTED]> wrote:
[...]
> > > I tried other components and invalidated the form and they behave
> > > different:
> > >
> > > TButton: gets green, stays green but the highlight color is shown when
> > > the mouse is over it
>
> TButton is the gtk button. It is drawn by the theme. That means, if the
> theme provides bitmaps for buttons, then it will use bitmaps for TButton.
> The LCL gtk interface uses a small hack to override this behaviour when a
> custom color is set. But of course a button is more than one color, so don't
> use custom colors with buttons, if your application should run on other
> peoples desktops.
No, I don't. My primary approach of signalling state was to set the
color of a panel. The button only came in for testing the behaviour of
other widgets as this won't work. The panel is the parent of some other
widgets of interest.
I marked from having shot in my foot by themeing already. ;)
> > >
> > > TLabel: is getting green and grey again, works as expected.
>
> TLabel is drawn entirely by the LCL. It uses the nearest font it can find on
> the system or the default font.
> Because not all fonts supports all styles, like bold or italic, you should
> use font styles with care. Especially you should not use font styles as the
> only sign to highlight a label from other labels/controls.
Yes, I'm aware of fonts, too.
[...]
> > All this holds true for GTK1 and there are at least two bug reports
> > related (1134 and 1160, some others deal with similar problems).
> >
> > Can anyone comment on this, maybe suggest a strategy for hunting this
> > bug?
>
> A better hack can improve the situation. But of course it will never be
> perfect.
> There was a patch proposal some weeks ago, but I was not able to apply it.
After looking at the new patch (and applying it) I wonder if there is a
short documentation on how binding a widgetset works. I don't get the
big picture yet. I never had a look into
lcl/interfaces/gtk/gtkproc.inc
lcl/interfaces/gtk/gtkcallback.inc
for example. Is there a paper somewhere explaning this topic in overview
for getting the big picture?
Thanks,
Marc
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives