From ba3844941eab0530279b5d19833609f2455f1c8c Mon Sep 17 00:00:00 2001 From: and3md Date: Sat, 27 Jan 2018 12:23:32 +0100 Subject: [PATCH] Ability to change min visible text in edit. --- src/dlangui/widgets/editors.d | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dlangui/widgets/editors.d b/src/dlangui/widgets/editors.d index 5236eaf4..e4550fbc 100644 --- a/src/dlangui/widgets/editors.d +++ b/src/dlangui/widgets/editors.d @@ -2314,6 +2314,16 @@ class EditLine : EditWidgetBase { protected Point _measuredTextToSetWidgetSize; protected dstring _textToSetWidgetSize = "aaaaa"d; + + @property void textToSetWidgetSize(dstring newText) { + _textToSetWidgetSize = newText; + requestLayout(); + } + + @property dstring textToSetWidgetSize() { + return _textToSetWidgetSize; + } + protected int[] _measuredTextToSetWidgetSizeWidths; protected dchar _passwordChar = 0;