Ability to change min visible text in edit.

This commit is contained in:
and3md 2018-01-27 12:23:32 +01:00
parent d47c8a03b2
commit ba3844941e
1 changed files with 10 additions and 0 deletions

View File

@ -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;