[Lazarus] Incorrect scrollbar theme in editor popup windows

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Sep 26 13:22:50 CEST 2012


Martin <lazarus at mfriebe.de> hat am 26. September 2012 um 12:36 geschrieben:
> On 26/09/2012 11:29, Graeme Geldenhuys wrote:
> > Anybody have a hint as to where I should look to fix this issue in the
> > IDE. Isn't the editor popup window simply a TListBox with maybe some
> > custom painting for each line? If so, when why is the scrollbar affected?
> >
> > Anyway, this really bugs me, and the issue existed since the start of
> > LCL-GTK2. So I don't mind scratching my own itch.
>
> It is a plain window (with no borders), and a TScrollbar
>
> TSynBaseCompletionForm in components\synedit\syncompletion.pas
>
> Scroll := TScrollBar.Create(self);
> Scroll.Kind := sbVertical;
> Scroll.OnChange := @ScrollChange;
> Scroll.Parent := Self;
> Scroll.OnEnter := @ScrollGetFocus;
> Scroll.OnScroll := @ScrollScroll;
> Scroll.TabStop := False;
> Scroll.Visible := True;
>
>
> SO it is probably TScrollBar that needs looking after?

The TSynBaseCompletionForm paints on the form, the whole area. But the
TScrollBar is not opaque, so syncompletion paints into the scrollbar.
I fixed the background of items.
But there is still some non default background painting. Maybe the form color is
set.

Mattias




More information about the Lazarus mailing list