Thanks for your reply!
> hello silver,
>
[quoted text clipped - 13 lines]
> Regards
> Philipp Fabrizio
I have made some progress on this. A *release* build with DoubleBuffer
= True creates very good performance for the scroll of a UserControl.
The original issue is that we have the uc on a TabControl -> TabPage
surface. If I simply add the uc to the TabPage (drag 'n 'drop from the
Toolbox) the scroll gets extremely slow again. Note that the scrollbars
are defined on the uc, and the scroll is handled by it, as before, but
still performance stinks.
It seems like the TabPage hierarchy does not involve the UserControl
Type, and thus does not have the DoubleBuffer property.
Any advice is appreciated on how to boost the TabControl/TabPage
controls.
Anders
Philipp - 21 Jan 2007 11:05 GMT
ok, now that changes the problem a little bit. the cause for the major
performace lag is the gradient background of the tab control combined
with the transparency of all controls inside it.
to maintain the gradient for all controls, the tab page background is
calculated and repainted in a clip region for each control individually
before the control renders itself.
the only way to solve the problem is to set the background color of the
usercontrol or the tab page to a simple color like "Control", even if
it doesn't look that nice.
regards
philipp fabrizio
silver schrieb:
> Thanks for your reply!
>
[quoted text clipped - 32 lines]
>
> Anders