mirror of https://github.com/buggins/dlangui.git
Merge pull request #542 from and3md/edit_size
Ability to change min size edit text.
This commit is contained in:
commit
0f0a72b692
|
@ -2314,6 +2314,16 @@ class EditLine : EditWidgetBase {
|
||||||
|
|
||||||
protected Point _measuredTextToSetWidgetSize;
|
protected Point _measuredTextToSetWidgetSize;
|
||||||
protected dstring _textToSetWidgetSize = "aaaaa"d;
|
protected dstring _textToSetWidgetSize = "aaaaa"d;
|
||||||
|
|
||||||
|
@property void textToSetWidgetSize(dstring newText) {
|
||||||
|
_textToSetWidgetSize = newText;
|
||||||
|
requestLayout();
|
||||||
|
}
|
||||||
|
|
||||||
|
@property dstring textToSetWidgetSize() {
|
||||||
|
return _textToSetWidgetSize;
|
||||||
|
}
|
||||||
|
|
||||||
protected int[] _measuredTextToSetWidgetSizeWidths;
|
protected int[] _measuredTextToSetWidgetSizeWidths;
|
||||||
|
|
||||||
protected dchar _passwordChar = 0;
|
protected dchar _passwordChar = 0;
|
||||||
|
|
Loading…
Reference in New Issue