yangyin
2025-03-27 b0de14c2670b9ff0079dacfb4b7457b438368f11
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)