public ViewLayoutRibbonScroller(KryptonRibbon ribbon,
VisualOrientation orientation,
bool insetForTabs,
NeedPaintHandler needPaintDelegate)
{
// Cache provided values
_orientation = orientation;
_insetForTabs = insetForTabs;
// Create the button and the separator
_button = new ViewDrawRibbonScrollButton(ribbon, orientation);
_separator = new ViewLayoutRibbonSeparator(GAP_LENGTH, true);
// Create button controller for clicking the button
RepeatButtonController rbc = new RepeatButtonController(ribbon, _button, needPaintDelegate);
rbc.Click += new MouseEventHandler(OnButtonClick);
_button.MouseController = rbc;
// Add as child elements
Add(_button);
Add(_separator);
}