- Only invalidate the effected tabs when the
selected index changes. This reduces drawing and gets rid of some
flicker.
- Only refresh if the tabs need to be shifted, otherwise only
invalidate the slider button.
svn path=/trunk/mcs/; revision=39624
if (CanScrollRight) {
slider_pos++;
SizeTabs ();
+ Refresh ();
+ } else {
+ Invalidate (right);
}
- Refresh ();
- return;
} else if (left.Contains (e.X, e.Y)) {
left_slider_state = ButtonState.Pushed;
if (CanScrollLeft) {
slider_pos--;
SizeTabs ();
+ Refresh ();
+ } else {
+ Invalidate (left);
}
- Refresh ();
- return;
}
-
}
int count = Controls.Count;