Download MetaTrader 5

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

To add comments, please log in or register
Looking for like-minded people? You will find lots of them on the Forum!
taro300
71
taro300 2014.03.26 04:09 

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 )

Alain Verleyen
Moderator
30755
Alain Verleyen 2014.03.26 07:39  

Hello,

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


This time, I edited it for you.

Alain Verleyen
Moderator
30755
Alain Verleyen 2014.03.26 07:46  
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.
taro300
71
taro300 2014.03.26 12:50  
angevoyageur:

Hello,

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


This time, I edited it for you.



OK!
taro300
71
taro300 2014.03.26 13:06  
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.

qjol
3243
qjol 2014.03.26 13:57  
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

taro300
71
taro300 2014.03.26 16:55  
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)

qjol
3243
qjol 2014.03.26 17:11  
try to find it from 0x10 to 0x20 or 0x20 to 0x30 Etc.
Alain Verleyen
Moderator
30755
Alain Verleyen 2014.03.26 17:28  
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).
taro300
71
taro300 2014.03.26 17:30  
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

qjol
3243
qjol 2014.03.26 17:38  
so try > 252 untill 10000 or until you find what you looking for
12
To add comments, please log in or register