Exemple #1
0
        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;
        }
Exemple #2
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 #3
0
        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);
        }
Exemple #4
0
        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;
        }
Exemple #5
0
        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);
        }
Exemple #6
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);
            //---------------------------------------------------------
            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;
        }
Exemple #7
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;
        }