How to remove focus from currently focused component?

后端 未结 4 932
自闭症患者
自闭症患者 2021-01-02 15:09

I have a DB component which DataLink.UpdateRecord is called when it receives CM_EXIT message. This message is sent when it loses focus. When I click post button, it doesn\'t

4条回答
  •  萌比男神i
    2021-01-02 16:04

    Have a look at TCustomForm.FocusControl. You can't make it lose focus without switching focus to something else, but you can switch and then immediately switch back, which would probably work.

提交回复
热议问题