HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-09-18 c7df85937f73fb347ee0b19e9c052d2d00a6df6c
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/TextInputControls/DialogInputControl.cs
@@ -50,7 +50,8 @@
        /// <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);
@@ -68,7 +69,7 @@
            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);
@@ -86,13 +87,17 @@
            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));