From b0de14c2670b9ff0079dacfb4b7457b438368f11 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期四, 27 三月 2025 10:17:53 +0800 Subject: [PATCH] 添加导出直线圆弧数据 --- WinFrmUI/DPumpHydr.WinFrmUI.RLT/Controls/TextBoxEdit/MaterialTextBoxEdit.cs | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Controls/TextBoxEdit/MaterialTextBoxEdit.cs b/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Controls/TextBoxEdit/MaterialTextBoxEdit.cs index cf97e19..aa07b46 100644 --- a/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Controls/TextBoxEdit/MaterialTextBoxEdit.cs +++ b/WinFrmUI/DPumpHydr.WinFrmUI.RLT/Controls/TextBoxEdit/MaterialTextBoxEdit.cs @@ -31,7 +31,11 @@ [Browsable(false)] public MaterialSkinManager SkinManager => MaterialSkinManager.Instance; - public bool Focus() + /// <summary> + /// + /// </summary> + /// <returns></returns> + public new bool Focus() { return baseTextBox.Focus(); } @@ -113,6 +117,19 @@ Invalidate(); } } + + [Category("Material"), DefaultValue(""), Localizable(true), Description("Helper text conveys additional guidance about the input field, such as how it will be used.")] + public string NullValuePromptText + { + get => _nullValuePromptText; + set + { + _nullValuePromptText = value; + Invalidate(); + } + } + private string _nullValuePromptText; + private string _errorMessage; @@ -1003,7 +1020,7 @@ bool userTextPresent = !string.IsNullOrEmpty(Text); Rectangle helperTextRect = new(LEFT_PADDING - _prefix_padding, LINE_Y + ACTIVATION_INDICATOR_HEIGHT, Width - (LEFT_PADDING - _prefix_padding) - _right_padding, HELPER_TEXT_HEIGHT); Rectangle hintRect = new(_left_padding - _prefix_padding, HINT_TEXT_SMALL_Y, Width - (_left_padding - _prefix_padding) - _right_padding, HINT_TEXT_SMALL_SIZE); - int hintTextSize = 12; + int hintTextSize = 8; // bottom line base g.FillRectangle(SkinManager.DividersAlternativeBrush, 0, LINE_Y, Width, 1); @@ -1331,7 +1348,7 @@ new(destRect.Width, 0), new(0, destRect.Height), }, - destRect, GraphicsUnit.Pixel, grayImageAttributes); + destRect, GraphicsUnit.Pixel);// 涓嶈鐏拌壊 , grayImageAttributes); } //Create a pre - processed copy of the image(RED) @@ -1388,7 +1405,7 @@ new(destRect.Width, 0), new(0, destRect.Height), }, - destRect, GraphicsUnit.Pixel, grayImageAttributes); + destRect, GraphicsUnit.Pixel);//, grayImageAttributes); } //Create a pre - processed copy of the image(RED) -- Gitblit v1.9.3