On Wednesday 26 of September 2012 13:34:34 Graeme Geldenhuys wrote: > On 2012-09-26 12:22, Mattias Gaertner wrote: > > 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. > > Why is the TScrollBar not opaque? Is this a setting only for synedit, > or for general LCL?
WS decides about opacity of scrollbar. LCL does not paint it at all. > Or why doesn't the form painting simply not take the scrollbar into > account. If the scrollbar is visible, reduce the client rectangle > painting area and/or paint the client area behind the scrollbar as > clForm color. Paint method of that forms should take into account scrollbar and reduce it's rect (so not FillRect() and others below scrollbar. zeljko -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus