| | |
| | | /// <para>做成一个弹窗型,左下角是【取消按钮】,右下角是【确认按钮】的弹窗控件</para>
|
| | | /// <para>New的时候,就已经加入到了界面</para>
|
| | | /// </summary>
|
| | | public DialogInputControl()
|
| | | /// <param name="i_MaxByte">文本框最大输入的byte数(默认36个byte)</param>
|
| | | public DialogInputControl(int i_MaxByte = 36)
|
| | | {
|
| | | //添加界面
|
| | | var nowForm = UserView.HomePage.Instance.GetChildren(UserView.HomePage.Instance.ChildrenCount - 1);
|
| | |
| | | frameBack.BackgroundColor = UserCenterColor.Current.White;
|
| | | frameBack.Y = Application.GetRealHeight(691);
|
| | | frameBack.Gravity = Gravity.CenterHorizontal;
|
| | | frameBack.Radius = 8;
|
| | | frameBack.Radius = (uint)Application.GetRealHeight(17);
|
| | | this.AddChidren(frameBack);
|
| | | //标题信息
|
| | | this.btnTitle = new NormalViewControl(frameBack.Width, Application.GetRealHeight(65), false);
|
| | |
| | | frameText.Gravity = Gravity.CenterHorizontal;
|
| | | frameText.BorderColor = 0xff676767;
|
| | | frameText.BorderWidth = 1;
|
| | | frameText.Radius = 8;
|
| | | frameText.Radius = (uint)Application.GetRealHeight(17);
|
| | | frameBack.AddChidren(frameText);
|
| | | //输入框
|
| | | this.txtInput = new TextInputControl(frameText.Width - Application.GetRealWidth(20), frameText.Height, false);
|
| | | txtInput.TextAlignment = TextAlignment.Center;
|
| | | txtInput.Gravity = Gravity.CenterHorizontal;
|
| | | frameText.AddChidren(txtInput);
|
| | | if (i_MaxByte > 0)
|
| | | {
|
| | | this.txtInput.MaxByte = i_MaxByte;
|
| | | }
|
| | |
|
| | | //取消
|
| | | this.btnCancel = new BottomLeftClickButton(Application.GetRealWidth(396), Application.GetRealHeight(127));
|