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

And Windows Drag Region
This commit is contained in:
杨红岩 2023-01-23 21:17:33 +08:00
parent de0860930e
commit 68ee5b84f9
2 changed files with 22 additions and 4 deletions

View File

@ -326,6 +326,16 @@ func (m *LCLBrowserWindow) Maximize() {
})
}
func (m *LCLBrowserWindow) SetTransparentColor() {
}
//func (m *LCLBrowserWindow) SetTransparentColor() {
// m.SetColor(colors.ClNavy)
// Exstyle := win.GetWindowLong(m.Handle(), win.GWL_EXSTYLE)
// Exstyle = Exstyle | win.WS_EX_LAYERED&^win.WS_EX_TRANSPARENT
// win.SetWindowLong(m.Handle(), win.GWL_EXSTYLE, uintptr(Exstyle))
// win.SetLayeredWindowAttributes(m.Handle(),
// colors.ClNavy, //crKey 指定需要透明的背景颜色值
// 255, //bAlpha 设置透明度,0完全透明255不透明
// //LWA_ALPHA: crKey无效,bAlpha有效
// //LWA_COLORKEY: 窗体中的所有颜色为crKey的地方全透明bAlpha无效
// //LWA_ALPHA | LWA_COLORKEY: crKey的地方全透明其它地方根据bAlpha确定透明度
// win.LWA_ALPHA|win.LWA_COLORKEY)
//}

View File

@ -61,7 +61,15 @@ func main() {
})
cef.BrowserWindow.SetBrowserInitAfter(func(window cef.IBrowserWindow) {
//sys_tray.TrayMain()
//browserWindow := window.AsLCLBrowserWindow()
//parent := browserWindow.WindowParent()
//parent.SetAlign(types.AlNone)
//parent.SetAnchors(types.NewSet(types.AkTop, types.AkLeft, types.AkBottom, types.AkRight))
//parent.SetTop(100)
//parent.SetLeft(100)
//parent.SetWidth(600)
//parent.SetHeight(600)
//browserWindow.BrowserWindow().SetTransparentColor()
//dwWinStyle := win.GetWindowLong(window.AsLCLBrowserWindow().Handle(), win.GWL_STYLE)
//dwWinStyle |= win.WS_THICKFRAME
//win.SetWindowLong(window.AsLCLBrowserWindow().Handle(), win.GWL_STYLE, uintptr(dwWinStyle))