protected override UIScrollThumb CreateThumb()
        {
            UIScrollThumb thumb = WindowManager.Instance.CreateWindow("Nexus.GUI.Widgets.UIScrollThumb", name + "_thumb", this) as UIScrollThumb;

            thumb.Width    = new UIDim(1, 0);
            thumb.Height   = new UIDim(0, 24);
            thumb.Vertical = true;
            return(thumb);
        }
        }                           //default ctor not valid - we want to enforce initializing our data

        protected UIScrollBar(string name)
            : base(name)
        {
            this.documentSize = 1.0f;
            this.pageSize     = 1.0f;
            this.stepSize     = 1.0f;

            background = new UIComp_DrawTextureAtlas(this);

            background.ResourceAtlasLocation = new NexusEngine.NResourceLoc(@"engine_data:/ui/Atlas/engine_data1.txa");
            background.AtlasItemName         = "0";

            increaseButton = CreateDecreaseButton();
            decreaseButton = CreateIncreaseButton();
            thumb          = CreateThumb();

            InitEventHandler();
        }