public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.HasSpecificHeight = this.HasSpecificHeight; renderE.HasSpecificWidth = this.HasSpecificWidth; renderE.SetController(this); renderE.SetVisible(this.Visible); #if DEBUG //if (dbugBreakMe) //{ // renderE.dbugBreak = true; //} #endif renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.HasSpecificSize = true; renderE.SetViewport(this.ViewportX, this.ViewportY); //------------------------------------------------ //create visual layer int childCount = this.ChildCount; for (int m = 0; m < childCount; ++m) { renderE.AddChild(this.GetChild(m)); } //set primary render element //--------------------------------- this.primElement = renderE; } return(primElement); }
public override RenderElement GetPrimaryRenderElement(RootGraphic rootgfx) { if (primElement == null) { var renderE = new CustomRenderBox(rootgfx, this.Width, this.Height); renderE.HasSpecificHeight = this.HasSpecificHeight; renderE.HasSpecificWidth = this.HasSpecificWidth; renderE.SetController(this); renderE.SetVisible(this.Visible); #if DEBUG //if (dbugBreakMe) //{ // renderE.dbugBreak = true; //} #endif renderE.SetLocation(this.Left, this.Top); renderE.BackColor = backColor; renderE.HasSpecificSize = true; renderE.SetViewport(this.ViewportX, this.ViewportY); //------------------------------------------------ //create visual layer int childCount = this.ChildCount; for (int m = 0; m < childCount; ++m) { renderE.AddChild(this.GetChild(m)); } //set primary render element //--------------------------------- this.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; }
protected void SetPrimaryRenderElement(CustomRenderBox primElement) { this.primElement = 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); //--------------------------------------------------------- //MinButton SetupMinButtonProperties(bgBox); //MaxButton SetupMaxButtonProperties(bgBox); //ScrollButton SetupHorizontalScrollButtonProperties(bgBox); //-------------- this.mainBox = bgBox; }
protected void SetPrimaryRenderElement(CustomRenderBox primElement) { this.primElement = primElement; }