| | |
| | | /// </summary>
|
| | | public string Text
|
| | | {
|
| | | get { return txtInput.Text; }
|
| | | get { return txtInput.Text.Trim(); }
|
| | | set { txtInput.Text = value; }
|
| | | }
|
| | | /// <summary>
|
| | | /// 输入框控件(取值或者获取值可以使用【Text】属性,虽然这个也可以取)
|
| | | /// </summary>
|
| | | public TextInputExControl txtInput = null;
|
| | | public TextInputControl txtInput = null;
|
| | | /// <summary>
|
| | | /// 标题控件
|
| | | /// </summary>
|
| | |
| | | /// </summary>
|
| | | /// <param name="i_caption">标题文本</param>
|
| | | /// <param name="i_text">输入框的值</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(真实值,有些界面需要这种特殊操作)</param>
|
| | | /// <param name="i_ChidrenYaxis">子控件Y轴偏移量(【列表控件的rowSpace/2】即可,不懂默认为0即可)</param>
|
| | | public FrameCaptionInputControl(string i_caption, string i_text, int i_ChidrenYaxis = 0) : base(i_ChidrenYaxis)
|
| | | {
|
| | | this.UseClickStatu = false;
|
| | |
| | | btnCaption.Gravity = Gravity.CenterVertical;
|
| | | btnCaption.Text = i_caption + ":";
|
| | |
|
| | | txtInput = new TextInputExControl(700, true);
|
| | | txtInput = new TextInputControl(700, true);
|
| | | txtInput.UseFocusColor = true;
|
| | | txtInput.X = Application.GetRealWidth(294);
|
| | | txtInput.Gravity = Gravity.CenterVertical;
|
| | | txtInput.Text = i_text;
|
| | |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 添加底线___________________________
|
| | |
|
| | | /// <summary>
|
| | | /// <para>添加底线(如果左边有图标,则先添加图标,再添加底线)</para>
|
| | | /// <para>它的长度为:当前控件宽度-左右固定间距-左边图片宽度(如果有)-右边的偏移量</para>
|
| | | /// </summary>
|
| | | public override NormalViewControl AddBottomLine()
|
| | | {
|
| | | var btnLine = base.AddBottomLine();
|
| | | //联动线的状态
|
| | | txtInput.btnLine = btnLine;
|
| | |
|
| | | return btnLine;
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|