lxn / walk

A Windows GUI toolkit for the Go Programming Language
Other
6.79k stars 885 forks source link

Groupbox title support Chinese #690

Closed winxxp closed 3 years ago

winxxp commented 4 years ago

image

danny50610 commented 4 years ago

The upper part of the title seems to be cut off

winxxp commented 3 years ago
            offset := gb.headerHeight / 4
            wbcb := gb.WidgetBase.ClientBoundsPixels()
            if !win.MoveWindow(
                gb.hWndGroupBox,
                int32(wbcb.X),
                int32(wbcb.Y/*-offset*/),  // delete offset is ok
                int32(wbcb.Width),
                int32(wbcb.Height),
                true) {

                lastError("MoveWindow")
                break
            }
lxn commented 3 years ago

This should be fixed by https://github.com/lxn/walk/commit/97e648c9f710630ce59c4617693baf14dcc103c8.

Thanks for reporting and also coming up with the fix!