How to show scrollbars in TScrollBox after it has been made visible again?

Posted by aleluja on Stack Overflow See other posts from Stack Overflow or by aleluja
Published on 2010-04-18T16:30:39Z Indexed on 2010/04/18 16:33 UTC
Read the original article Hit count: 374

Filed under:
|
|

Hi,

I've ran into one small problem. I am dynamicaly generating some controls and place them on a TScrollbox component. But i noticed that if scrollbox is visible, user can clearly see each of the controls being created and placed. So it looksl ike lots of work is being done and it is slow.

I hid the scrollbox and generated all the controls on it, which took much less time and no flickering and alike. But here's the problem. When i unhide the scrollbox, its' scrollbar doesn't appear untill i actually resize the form. (The alignment of scrollbox is alClient)

Any ideas on how to fix this?

Tried repainting, but it didn't work. Refresh didn't work either.

Thank you

© Stack Overflow or respective owner

Related posts about delphi

Related posts about delphi-2009