Skip to content

Is there a fundamental reason that the width cannot be set on Windows? #57

Answered by ncruces
wsw70 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes:

zenity/entry_windows.go

Lines 121 to 139 in ee60339

func (dlg *entryDialog) layout(dpi dpi) {
font := dlg.font.forDPI(dpi)
win.SendMessage(dlg.textCtl, win.WM_SETFONT, font, 1)
win.SendMessage(dlg.editCtl, win.WM_SETFONT, font, 1)
win.SendMessage(dlg.okBtn, win.WM_SETFONT, font, 1)
win.SendMessage(dlg.cancelBtn, win.WM_SETFONT, font, 1)
win.SendMessage(dlg.extraBtn, win.WM_SETFONT, font, 1)
win.SetWindowPos(dlg.wnd, 0, 0, 0, dpi.scale(281), dpi.scale(141), win.SWP_NOMOVE|win.SWP_NOZORDER)
win.SetWindowPos(dlg.textCtl, 0, dpi.scale(12), dpi.scale(10), dpi.scale(241), dpi.scale(16), win.SWP_NOZORDER)
win.SetWindowPos(dlg.editCtl, 0

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@wsw70
Comment options

@ncruces
Comment options

Answer selected by wsw70
@wsw70
Comment options

@ncruces
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants