diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-20 19:58:05 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-20 19:58:05 +0200 |
commit | b92e7383c7b714c470ad7fd2764bbe9be16d9d01 (patch) | |
tree | 66e96eb5a782cfb59cd46d9d9918528d5a3f9213 /ui | |
parent | ui: change dpiAware setting in manifest to fix display on win8x (diff) | |
download | wireguard-windows-b92e7383c7b714c470ad7fd2764bbe9be16d9d01.tar.xz wireguard-windows-b92e7383c7b714c470ad7fd2764bbe9be16d9d01.zip |
ui: use compact height text edits in confview
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/confview.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/confview.go b/ui/confview.go index 665841da..cc54d2ab 100644 --- a/ui/confview.go +++ b/ui/confview.go @@ -41,7 +41,7 @@ type labelStatusLine struct { type labelTextLine struct { label *walk.TextLabel - text *walk.LineEdit + text *walk.TextEdit } type toggleActiveLine struct { @@ -153,8 +153,9 @@ func newLabelTextLine(fieldName string, parent walk.Container) *labelTextLine { lt.label.SetTextAlignment(walk.AlignHFarVNear) lt.label.SetVisible(false) - lt.text, _ = walk.NewLineEdit(parent) + lt.text, _ = walk.NewTextEdit(parent) win.SetWindowLong(lt.text.Handle(), win.GWL_EXSTYLE, win.GetWindowLong(lt.text.Handle(), win.GWL_EXSTYLE)&^win.WS_EX_CLIENTEDGE) + lt.text.SetCompactHeight(true) lt.text.SetReadOnly(true) lt.text.SetBackground(walk.NullBrush()) lt.text.SetVisible(false) |