mirror of
https://gitee.com/energye/energy.git
synced 2024-11-30 10:47:57 +08:00
v2.3.51 Fixed Chinese input and gtk3 issues for linux packagin,
And Windows Drag Region
This commit is contained in:
parent
de0860930e
commit
68ee5b84f9
@ -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)
|
||||
//}
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user