Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 181
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
tell me please, can you find out the width of the Label in pixels? the length of the text does not work letters have different widths
Maybe... We have to figure it out here.
and then
OBJPROP_XSIZE
Width of an object along X axis in pixels. Specified for OBJ_LABEL (read-only), OBJ_BUTTON, OBJ_BITMAP, OBJ_BITMAP_LABEL, OBJ_EDIT, OBJ_RECTANGLE_LABEL.
int
OBJPROP_YSIZE
Height of an object along the Y axis in pixels. Specified for OBJ_LABEL (read-only), OBJ_BUTTON, OBJ_BITMAP, OBJ_BITMAP_LABEL, OBJ_EDIT, OBJ_RECTANGLE_LABEL.
int
Maybe... We'll have to sort it out here.
it turned out to be easier than planned) ObjectGetInteger(0, "name",OBJPROP_YSIZE)
Thanks)
Another question in the global scope I declare and initialise such arrays, is it possible to do this in a separate function but for it to be visible in another function, I know that you can't return an array from a function, is there any other way...?
Another question in the global scope I declare and initialize such arrays, can it be done in a separate function, but that it would be visible in another function, I know that the array cannot be returned from the function, maybe there is another way...?
You can pass an array by reference into a function. Then all changes in the function will be made with the array reference to which was passed.
You can pass an array by reference to a function. Then all changes in the function will be made with the array referred to.
Not quite like that, the other way around would be(
Ideally get an array from a function, or declare and initialize it there, but that it would be globally visible, or a pointer to an array...
think in this direction so as not to load OnInit
not really, the other way around would be(
Ideally get an array from a function or declare and initialize it there, but that it would be globally visible, or a pointer to an array...
I think in this direction so as not to load OnInit
I'm thinking in this direction to avoid loading OnInit
Since the object is no longer needed, why would it be ordered in the list of objects? Delete it, and the list of required objects will remain as ordered.
Are there any examples of how to do this?
Are there any examples of how to do this?