felipefcm:
You can't, build your own cross hair.
How to check if cursor is in crosshair mode, so I can display additional information next to the built-in ones.
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?
You can't, build your own cross hair.
felipefcm:
In this case, is there a way to intercept the mouse middle button press and/or ctrl+f to use my own cursor?
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
- 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:
It's just detecting mouse movement/click. Besides it "works" even without enabling the crosshair, try a double-click and you will see.
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
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How to check if cursor is in crosshair mode, so I can display additional information next to the built-in ones.