<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
</head><body style="">
<div>
<br/>Graeme Geldenhuys <graeme@geldenhuys.co.uk> hat am 26. September 2012 um 14:33 geschrieben:
<br/>> On 2012-09-26 13:17, Mattias Gaertner wrote:
<br/>> >
<br/>> > Or exclude the clip rect or add csOpaque to the scrollbar controlstyle.
<br/>>
<br/>>
<br/>> It seems we found a bug here. TScrollbar is Opaque, but LCL-GTK2 seems
<br/>> to ignore that ControlStyle setting.
</div>
<div>
</div>
<div>
csOpaque is not a widgetset settings, but a LCL one. It excludes the area by clipping when calling Paint and effects how Mouse hits are handled.
</div>
<div>
</div>
<div>
<br/>> The code from TCustomScrollbar.Create()
<br/>>
<br/>>
<br/>> ControlStyle := ControlStyle + [csFramed, csDoubleClicks, csOpaque]
<br/>> - [csAcceptsControls, csDoubleClicks,
<br/>> csCaptureMouse, csSetCaption];
<br/>
<br/>
</div>
<div>
Right. Then maybe I guessed wrong and something else is painting the background.
</div>
<div>
</div>
<div>
Mattias
</div>
<div>
</div>
</body></html>