
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
Yes. There are still some issues with event handling and point calculation, but in general the task is not difficult and can be implemented in a day, taking into account searching the forum on related topics.
If you try hard, you can probably do it in a few hours.
How does the button detect that the cursor is pointing at it? -> It checks if x and y of the current mouse position are in a rectangular area.
If you add to this check the alpha-channel check in the given place, you're done :)
How does the button detect that the cursor is pointing at it? -> It checks if x and y of the current mouse position are in a rectangular area.
If you add to this check the alpha-channel check in the given place, you're done :)
So there you go. No changes to the standard library. Self-sufficient buttons class. The button files should be placed in MQL5 directory .../Images. I have not done it through resources, so that I could always change the images. Although, in the future, no one forbids to implement buttons as resources.
So there you go. No changes to the standard library. Self-sufficient buttons class. The button files should be placed in MQL5 directory .../Images. I have not done it through resources, so that I could always change the images. Although in the future no one forbids introducing buttons as resources.
Added buttons. Something didn't work the first time it was uploaded.
Added buttons. Somehow, the first time it didn't work uploading.
Without resources, it's like this.