mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 11:47:37 +08:00
v2.3.29 Fixed Chinese input and gtk3 issues for linux packagin,
And Windows Drag Region
This commit is contained in:
parent
46657f3e60
commit
1d51dc5f59
@ -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 {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user