v2.3.29 Fixed Chinese input and gtk3 issues for linux packagin,

And Windows Drag Region
This commit is contained in:
杨红岩 2023-01-18 18:25:53 +08:00
parent 46657f3e60
commit 1d51dc5f59
2 changed files with 6 additions and 5 deletions

View File

@ -79,11 +79,11 @@ func (m *LCLBrowserWindow) doOnRenderCompMsg(message *types.TMessage, lResult *t
win.ReleaseCapture()
m.windowsState = m.WindowState()
if m.windowsState == types.WsNormal {
rtl.SendMessage(m.Handle(), WM_SYSCOMMAND, SC_MAXIMIZE, 0)
rtl.PostMessage(m.Handle(), WM_SYSCOMMAND, SC_MAXIMIZE, 0)
} else {
rtl.SendMessage(m.Handle(), WM_SYSCOMMAND, SC_RESTORE, 0)
rtl.PostMessage(m.Handle(), WM_SYSCOMMAND, SC_RESTORE, 0)
}
rtl.SendMessage(m.Handle(), WM_NCLBUTTONUP, 0, 0)
rtl.SendMessage(m.Handle(), WM_NCLBUTTONUP, HTCAPTION, 0)
}
case WM_NCLBUTTONDOWN: //nc l down
if m.rgn != nil && wdrs.canCaption {
@ -91,7 +91,7 @@ func (m *LCLBrowserWindow) doOnRenderCompMsg(message *types.TMessage, lResult *t
*aHandled = true
win.ReleaseCapture()
rtl.PostMessage(m.Handle(), WM_NCLBUTTONDOWN, HTCAPTION, 0)
rtl.SendMessage(m.Handle(), WM_NCLBUTTONUP, 0, 0)
rtl.SendMessage(m.Handle(), WM_NCLBUTTONUP, HTCAPTION, 0)
}
case WM_NCLBUTTONUP: //nc l up
if m.rgn != nil && wdrs.canCaption {

View File

@ -29,7 +29,8 @@ func main() {
browserWindow := window.AsLCLBrowserWindow().BrowserWindow()
browserWindow.Constraints().SetMinWidth(300)
browserWindow.Constraints().SetMinHeight(300)
//window.HideTitle()
window.HideTitle()
//window.DisableResize()
window.AsLCLBrowserWindow().BrowserWindow().SetOnCloseQuery(func(sender lcl.IObject, canClose *bool) bool {
fmt.Println("lcl browser close query")
return false