Inheritance: RenderBoxBase
Exemple #1
0
        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);
        }
Exemple #2
0
        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;
        }
Exemple #3
0
        //--------------------------------------------------------------------------
        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;
        }
Exemple #4
0
 protected void SetPrimaryRenderElement(CustomRenderBox primElement)
 {
     this.primElement = primElement;
 }
Exemple #5
0
        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;
        }
Exemple #6
0
 protected void SetPrimaryRenderElement(CustomRenderBox primElement)
 {
     this.primElement = primElement;
 }