Check if mouse is on top of object?

 

Hi

I need to check if mouse is on top a button object or not in chart event (or any other section that would be proper but looks like chart event is the right way to do it), how can i do this?

Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
Documentation on MQL5: Constants, Enumerations and Structures / Objects Constants / Object Types
  • www.mql5.com
When a graphical object is created using the ObjectCreate() function, it's necessary to specify the type of object being created, which can be one of the values of the ENUM_OBJECT enumeration. Further specifications of object properties are possible using functions for working with graphical objects.
Reason: