Hello every one,
How I can create a bitmap label but use at as an Edit box or Lebel text object. I noticed that, some products use bitmap label instead of EDIT, BUTTON and LABEL objects and it help to speed up in MT5. But I don't know how to do that, is there anyone who can suggest any ideas for that?
For example, the text on a bitmap label on the chart can change constantly, but as far a I know bitmap label is a picture, so how is possible to change the text of a bitmap label object constantly??
they are probably tracking keyboard input
Hello every one,
How I can create a bitmap label but use at as an Edit box or Lebel text object. I noticed that, some products use bitmap label instead of EDIT, BUTTON and LABEL objects and it help to speed up in MT5.
How do you know that ?
if you mean to display text instead of using edits or labels then you'd place a canvas with the drawn background (which you render once) and another one above it where you constantly update the text.
Don't overdo it thought , 44ms is the human eye refresh rate , ballpark
you create an array of pixels
,1 dimensional width * height (uint)
and you fill it with text with this :
then you create a resource with this :(the 2nd version to which you send the array)
and then you send the resource name to the OBJ_BMP_FILE property of the bitmap object
The text get size function can help you gauge the size the text will occupy with the current settings which can change with (the) Text set font
You can create your own CSS essentially
EDTI : When you specify the name of the OBJ_BMP_FILE property with the resource name you also add a :: prefix to the string
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How I can create a bitmap label but use at as an Edit box or Lebel text object. I noticed that, some products use bitmap label instead of EDIT, BUTTON and LABEL objects and it help to speed up in MT5. But I don't know how to do that, is there anyone who can suggest any ideas for that?
For example, the text on a bitmap label on the chart can change constantly, but as far a I know bitmap label is a picture, so how is possible to change the text of a bitmap label object constantly??