protected void SetupScroll(Margin scrollBarMargin,
ScrollType scroll, ScrollBarDisplayType scrollBarDisplay, int flags,
String vtScrollBarRes, String hzScrollBarRes)
{
if (rootContainer == container)
{
container = new Container();
rootContainer.AddChild(container);
}
scrollPane = new ScrollPane(this, scroll, scrollBarMargin, scrollBarDisplay, flags, vtScrollBarRes, hzScrollBarRes);
}