How to check current cursor type

 

How to check if cursor is in crosshair mode, so I can display additional information next to the built-in ones. 

 
felipefcm:

How to check if cursor is in crosshair mode, so I can display additional information next to the built-in ones. 

You can't, build your own cross hair.
 
Alain Verleyen:
You can't, build your own cross hair.
In this case, is there a way to intercept the mouse middle button press and/or ctrl+f to use my own cursor?
 
felipefcm:
In this case, is there a way to intercept the mouse middle button press and/or ctrl+f to use my own cursor?

you can't.  you can only capture single keystrokes e.g. "F" using CHARTEVENT_KEYDOWN.  Here is an example used in OnChartEvent function.

if(id==CHARTEVENT_KEYDOWN && lparam==(StringGetChar("F",0)))


 

 

I wonder how's that done, it seems to use the original crosshair, and it can be triggered using Ctrl+F: 

https://www.mql5.com/en/market/product/7985

Trading Utility Percent Crosshair
Trading Utility Percent Crosshair
  • 15.00 USD
  • 2015.02.11
  • Romeu Bertho
  • www.mql5.com
Percent Crosshair is a powerful and easy percentage measure tool.Measure the chart percentage very quick! Don't waste your time anymore!Just attach...
 
felipefcm:

I wonder how's that done, it seems to use the original crosshair, and it can be triggered using Ctrl+F: 

https://www.mql5.com/en/market/product/7985

It's just detecting mouse movement/click. Besides it "works" even without enabling the crosshair, try a double-click and you will see.
Reason: