提交 f22f9c51 编写于 作者: yanghye's avatar yanghye

U: lcl window SetFocus

上级 2a26d5be
......@@ -76,10 +76,15 @@ func (m *LCLBrowserWindow) FramelessForLine() {
}
// SetFocus 设置窗口焦点
// https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-showwindow
// https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-setfocus
func (m *LCLBrowserWindow) SetFocus() {
if m.TForm != nil {
//窗口\激活在Z序中的下个顶层窗口
m.Minimize()
//激活窗口出现在前景
m.Restore()
//窗口设置焦点
m.TForm.SetFocus()
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册