Good afternoon, tell me - are there plans to raise the priority of OBJ_BITMAP_LABEL object when processing a click?
Please clarify. I checked - if the OBJ_BITMAP_LABEL object is in the foreground, the mouse click event is recognised correctly.
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов
- www.mql5.com
Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов - Документация по MQL5
If the OBJ_BITMAP_LABLEL object overlaps another object, for example OBJ_EDIT, the click event is ignored. I addressed this question to servicedesk, to which I got the answer: "It is designed that way, OBJ_BITMAP_LABEL has a lower priority when processing a click". In some cases it is not very convenient if you implement GUI elements using this object.
Документация по MQL5: Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов
- www.mql5.com
Стандартные константы, перечисления и структуры / Константы объектов / Типы объектов - Документация по MQL5
It is possible to write a simple and generic foreground translation code. To do this, objects are deleted and created again.
For example, you can make an object wrapper for GUI elements and bring the required object/groups of objects to the foreground at each initialisation/reversal.
Vigor:
You misunderstand a bit, here it is a matter of processing a click from an object by the terminal itself. Below is a simple EA that demonstrates all this.
It is possible to write a simple and versatile foreground translation code. To do this, objects are deleted and created again.
For example, you can make an object wrapper for GUI elements and at each initialisation/reversal bring the required object/groups of objects to the foreground.
Files:
TestBmp.mq5
3 kb
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
Demo_Create_OBJ_BITMAP_LABEL_EA:
The example of button, created using the object of OBJ_BITMAP_LABEL type.
The graphic object of OBJ_BITMAP_LABEL allows to create the different buttons. To enable the change of its state, it's necessary to enable the "Disable selection" property.
Author: MetaQuotes