aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/confview.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 19:58:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-20 19:58:05 +0200
commit313d0db8e6540c3609cb68490f49447dd1b22126 (patch)
tree66e96eb5a782cfb59cd46d9d9918528d5a3f9213 /ui/confview.go
parentui: change dpiAware setting in manifest to fix display on win8x (diff)
downloadwireguard-windows-313d0db8e6540c3609cb68490f49447dd1b22126.tar.xz
wireguard-windows-313d0db8e6540c3609cb68490f49447dd1b22126.zip
ui: use compact height text edits in confview
Diffstat (limited to '')
-rw-r--r--ui/confview.go5
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)