public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); this.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.SetController(this); renderE.HasSpecificSize = true; //------------------------------------------------ //create visual layer if (this.landPart != null) { renderE.AddChild(this.landPart); } if (this.floatPart != null) { } //--------------------------------- primElement = renderE; } return primElement; }
//-------------------------------------------------------------------------- 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; }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.SetController(this); renderE.HasSpecificSize = true; //------------------------------------------------ //create visual layer int n = this.uiList.Count; for (int m = 0; m < n; ++m) { renderE.AddChild(uiList.GetElement(m)); } //--------------------------------- primElement = renderE; } return(primElement); }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.SetController(this); renderE.HasSpecificSize = true; //------------------------------------------------ //create visual layer int n = this.uiList.Count; for (int m = 0; m < n; ++m) { renderE.AddChild(uiList.GetElement(m)); } //--------------------------------- primElement = renderE; } return primElement; }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.SetController(this); renderE.HasSpecificSize = true; //------------------------------------------------ //create visual layer if (this.landPart != null) { renderE.AddChild(this.landPart); } if (this.floatPart != null) { } //--------------------------------- primElement = renderE; } return(primElement); }
void CreateHScrollbarContent(RootGraphic rootgfx) { CustomRenderBox bgBox = new CustomRenderBox(rootgfx, this.Width, this.Height); bgBox.HasSpecificSize = true; bgBox.SetController(this); bgBox.SetLocation(this.Left, this.Top); //--------------------------------------------------------- slideBox.ScrollBarType = ScrollBarType.Horizontal; slideBox.SetLocation(minmax_boxHeight, 0); slideBox.SetSize(this.Width - minmax_boxHeight * 2, this.Height); RenderElement sliderRenderE = slideBox.GetPrimaryRenderElement(rootgfx); bgBox.AddChild(sliderRenderE); //MinButton SetupMinButtonProperties(bgBox); //MaxButton SetupMaxButtonProperties(bgBox); //ScrollButton SetupHorizontalScrollButtonProperties(bgBox); //-------------- this.mainBox = bgBox; }
void CreateHScrollbarContent(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 SetupHorizontalScrollButtonProperties(bgBox); //-------------- this.mainBox = bgBox; }