public TextElement(TextElement t) : base(t) { _text = t._text; _toggleState = t._toggleState; _isToggle = t._isToggle; _sourceElement = t; }
//改为放缩状态 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; } }
//改为旋转状态 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; } }
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; }
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; } } }
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; }
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; } } }