Example #1
0
 public TextElement(TextElement t)
     : base(t)
 {
     _text          = t._text;
     _toggleState   = t._toggleState;
     _isToggle      = t._isToggle;
     _sourceElement = t;
 }
Example #2
0
 //改为放缩状态
 public void ChangeScaling(bool Toggle)
 {
     if (Toggle)
     {
         for (int i = 0; i < SeletedGameObject.Count; i++)
         {
             SeletedGameObject[i].GetComponent <CreatedObject>().SwitchState(CreatedObject.State.Scaling);
         }
         ToggleState = ToggleStateEnum.Scaling;
     }
 }
Example #3
0
 //改为旋转状态
 public void ChangeRotaion(bool Toggle)
 {
     if (Toggle)
     {
         for (int i = 0; i < SeletedGameObject.Count; i++)
         {
             SeletedGameObject[i].GetComponent <CreatedObject>().SwitchState(CreatedObject.State.Rotation);
         }
         ToggleState = ToggleStateEnum.Rotaion;
     }
 }
Example #4
0
        private void Shrink()
        {
            while (this.Height > this.lblTop.Height)
            {
                Application.DoEvents();
                this.Height -= ScrollIntervalValue;
            }
            this.expanderToggle.ImageIndex = 1;
            this.Height = this.lblTop.Height + datelabel.Height + pad;

            this.State = ToggleStateEnum.Closed;
        }
        public InputResult OnInput(InputType inputType, MouseEventArgs beginArgs, MouseEventArgs endArgs, object args)
        {
            if (inputType == InputType.Click)
            {
                ToggleState = ToggleState == ToggleStateEnum.On
                ? ToggleStateEnum.Off
                : ToggleStateEnum.On;

                return InputResult.Consumed;
            }

            return InputResult.Bubble;
        }
Example #6
0
 internal TextElement(Container parent, RdlEngine.ReportElement reportElement, string name, string text, BoxStyle style)
     : base(parent, reportElement, style)
 {
     _name = name;
     _text = text;
     if (reportElement is RdlEngine.TextBox)
     {
         if (((RdlEngine.TextBox)reportElement).ToggleImage != null)
         {
             _toggleState = (((RdlEngine.TextBox)reportElement).ToggleImage.InitialState) ? ToggleStateEnum.open : ToggleStateEnum.closed;
         }
     }
 }
Example #7
0
        private void Grow()
        {
            int x = flowLayoutPanel1.Location.Y + SumHeight(flowLayoutPanel1) + pad;

            while (this.Height < (x))
            {
                Application.DoEvents();
                this.Height += ScrollIntervalValue;
            }
            this.expanderToggle.ImageIndex = 0;
            this.Height = x;

            this.State = ToggleStateEnum.Open;
        }
Example #8
0
 internal TextElement(Container parent, Rdl.Engine.ReportElement reportElement, string name, string text, BoxStyle style, Rdl.Runtime.Context context)
     : base(parent, reportElement, style)
 {
     _name = name;
     _text = text;
     Rdl.Engine.TextBox tb = reportElement as Rdl.Engine.TextBox;
     if (tb != null)
     {
         if (((Rdl.Engine.TextBox)reportElement).ToggleImage != null)
         {
             _toggleState = (((Rdl.Engine.TextBox)reportElement).ToggleImage.InitialState(context)) ? ToggleStateEnum.open : ToggleStateEnum.closed;
         }
     }
 }
        private void Shrink()
        {
            while (this.Height > this.lblTop.Height)
            {
                Application.DoEvents();
                this.Height -= ScrollIntervalValue;
            }
            this.expanderToggle.ImageIndex = 1;
            this.Height = this.lblTop.Height + datelabel.Height + pad;

            this.State = ToggleStateEnum.Closed;
        }
        private void Grow()
        {
            int x = flowLayoutPanel1.Location.Y + SumHeight(flowLayoutPanel1) + pad;
            while (this.Height < (x))
            {
                Application.DoEvents();
                this.Height += ScrollIntervalValue;
            }
            this.expanderToggle.ImageIndex = 0;
            this.Height = x;

            this.State = ToggleStateEnum.Open;
        }