//-------------------------------------------------------------------------- void CreateVScrollbarContent(RootGraphic rootgfx) { CustomRenderBox bgBox = new CustomRenderBox(rootgfx, this.Width, this.Height); bgBox.HasSpecificSize = true; bgBox.SetController(this); bgBox.SetLocation(this.Left, this.Top); //MinButton SetupMinButtonProperties(bgBox); //MaxButton SetupMaxButtonProperties(bgBox); //ScrollButton SetupVerticalScrollButtonProperties(bgBox); //-------------- this.mainBox = bgBox; }
//-------------------------------------------------------------------------- void CreateVScrollbarContent() { CustomRenderBox bgBox = new CustomRenderBox(this.Width, this.Height); //bgBox.HasSpecificWidthAndHeight = true; bgBox.SetController(this); bgBox.SetLocation(this.Left, this.Top); //MinButton SetupMinButtonProperties(bgBox); //MaxButton SetupMaxButtonProperties(bgBox); //ScrollButton SetupVerticalScrollButtonProperties(bgBox); //-------------- _mainBox = bgBox; }