Detect if Firemonkey control loses focus


I have a custom control that inherits from TGrid. It has working functions that can show/hide the control. I am trying to make it so when a user clicks anywhere off of the control, the control will hide. I figured the way to do this was to call my hide function when the control loses focus. I tried looking for an event handler like OnFocusLost but that was not an available handler as far as I could see. How can I go about detecting if my control has lost focus? Is there a better way to detect if a user clicks somewhere outside of my control?

Comments are closed.