From 313d0db8e6540c3609cb68490f49447dd1b22126 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 20 May 2019 19:58:05 +0200 Subject: ui: use compact height text edits in confview --- ui/confview.go | 5 +++-- 1 file 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) -- cgit v1.2.3-59-g8ed1b