How to remove focus from currently focused component?

后端 未结 4 916
自闭症患者
自闭症患者 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条回答
  •  执念已碎
    2021-01-02 15:52

    You could use:

    procedure TCustomForm.DefocusControl(Control: TWinControl; Removing: Boolean);
    

提交回复
热议问题