* * *

Author Topic: Flickering TScrollbox  (Read 286 times)

kupferstecher

  • Jr. Member
  • **
  • Posts: 82
Flickering TScrollbox
« on: May 11, 2017, 09:15:02 pm »
Hi,

there is flickering inside a TScrollbox when I set a quantity of controls to visible:= false. Its reproducable, see the attached example project. The flickering occurs on and near to the border of the scrollbox.
DoubleBuffered:= true also doesn't help.

It seems to be fine for BorderStyle:= bsNone. But in the standard configuration (bsSingle) there is this annoying flickering.

Does anyone know how to solve that?

Regards

PS: Same behaviour on Win Vista 32bit, Lazarus 1.6.4
and on Win7 64bit, Lazarus 1.6.

Thaddy

  • Hero Member
  • *****
  • Posts: 3394
Re: Flickering TScrollbox
« Reply #1 on: May 11, 2017, 09:38:00 pm »
Seems to be an off-by-one bug in the case of a border.

kupferstecher

  • Jr. Member
  • **
  • Posts: 82
Re: Flickering TScrollbox
« Reply #2 on: May 11, 2017, 10:00:22 pm »
Hm, could be.
Now I also testet on Linux with qt, there the flickering doesn't occur.

ASerge

  • Sr. Member
  • ****
  • Posts: 280
Re: Flickering TScrollbox
« Reply #3 on: May 19, 2017, 11:35:14 pm »
there is flickering inside a TScrollbox when I set a quantity of controls to visible:= false.
Framing with ScrollBox1.DisableAutoSizing and ScrollBox1.EnableAutoSizing will help.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus