How to use Characters of Windings with the OBJ_LABEL object on MT4(build 610).

 

The following test code is not work on MT4(build 610).

I want use Characters of Windings with the OBJ_LABEL object on MT4(build 610).


(1) compile ( build 509 ) & execute ( build 509 ) -> OK

(2) compile ( build 509 ) & execute ( build 610 ) -> OK

(3) compile ( build 610 ) & execute ( build 610 ) -> NG ( 129-159 and 224-252 )


<< document ( Wingdings ) >>

https://docs.mql4.com/constants/objectconstants/wingdings

( support OBJ_ARROW only!? )


<< text code (indicator) >>

#property indicator_chart_window

int
init()
{
for (int y = 0; y < 0x10; y++) {
for (int x = 0; x < 0x10; x++) {
string obj_name = "LABEL_" + y + "_" + x;
ObjectCreate(obj_name, OBJ_LABEL, 0, 0, 0);
ObjectSet(obj_name, OBJPROP_CORNER, 0);
ObjectSet(obj_name, OBJPROP_XDISTANCE, x * 30);
ObjectSet(obj_name, OBJPROP_YDISTANCE, y * 30);
ObjectSetText(obj_name, CharToStr(y*16+x), 15, "Wingdings", Red);
}
}

return(0);
}

int
deinit()
{
for (int y = 0; y < 0x10; y++) {
for (int x = 0; x < 0x10; x++) {
string obj_name = "LABEL_" + y + "_" + x;
ObjectDelete(obj_name);
}
}

return(0);

}

int
start()
{
return(Bars);
}


<< result ( compile ( build 610 ) & execute ( build 610 ) ) >>

compile (build 610) & execute ( build 610 )

 

Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.

 
taro300:

The following test code is not work on MT4(build 610).

I want use Characters of Windings with the OBJ_LABEL object on MT4(build 610).


(1) compile ( build 509 ) & execute ( build 509 ) -> OK

(2) compile ( build 509 ) & execute ( build 610 ) -> OK

(3) compile ( build 610 ) & execute ( build 610 ) -> NG ( 129-159 and 224-252 )


<< document ( Wingdings ) >>

https://docs.mql4.com/constants/objectconstants/wingdings

( support OBJ_ARROW only!? )


<< text code (indicator) >>



<< result ( compile ( build 610 ) & execute ( build 610 ) ) >>


Tested with current build (625). No problem.
 
angevoyageur:

Hello,

Please use the SRC button when you post code. Thank you.


This time, I edited it for you.



OK!
 
angevoyageur:
Tested with current build (625). No problem.



Thanks.

The problem was fixed in at least bulid 625.

My brokers's build version is build 610.

I wait for my broker's version up.

 
taro300:


I wait for my broker's version up.


you can do it by yourself without your broker's push

open a demo acc. with MetaQuotes

 
qjol:

you can do it by yourself without your broker's push

open a demo acc. with MetaQuotes


I tried it now, but same result. (>_<)/


<< compile (build 625) and exexute (build 625) >>

compile (build 625) and execute (build 625)

 
try to find it from 0x10 to 0x20 or 0x20 to 0x30 Etc.
 
taro300:


I tried it now, but same result. (>_<)/


<< compile (build 625) and exexute (build 625) >>


It's probably a problem with your locale. See this topic (from mql5 but similar).
 
qjol:
try to find it from 0x10 to 0x20 or 0x20 to 0x30 Etc.


129-159 and 224-252 = 0x81 to 0x9f and 0xe0 to 0xfc

 
so try > 252 untill 10000 or until you find what you looking for
Reason: