A: view's component events/procs

This commit is contained in:
杨红岩 2023-07-04 15:59:18 +08:00
parent 5c922333c5
commit e1e96ada8e

View File

@ -38,6 +38,7 @@ func createDevtoolsWindow(owner *LCLBrowserWindow) *devToolsWindow {
window.SetHeight(768)
window.ScreenCenter()
window.SetShowInTaskBar(types.StAlways)
window.SetVisible(false)
window.TForm.SetOnClose(func(sender lcl.IObject, action *types.TCloseAction) {
*action = types.CaFree
owner.Chromium().CloseDevTools(window.WindowParent()) // close devtools