Download MetaTrader 5

Same fonts >> different sizes on different pcs

To add comments, please log in or register
sunshineh
1250
sunshineh  

Hi

I have realized something really strange with metatrader on different Computers.
I have the following code snippet:

ObjectCreate("t1", OBJ_LABEL,  WindowOnDropped( ), 0, 0);
ObjectSet("t1",OBJPROP_XDISTANCE, 20);
ObjectSet("t1", OBJPROP_YDISTANCE, 40);
ObjectSetText("t1","Teststring", 8, "Arial", clrOrange);

ObjectCreate("t2", OBJ_LABEL,  WindowOnDropped( ), 0, 0);
ObjectSet("t2",OBJPROP_XDISTANCE, 77);
ObjectSet("t2", OBJPROP_YDISTANCE, 40);
ObjectSetText("t2","TESTSTRING", 8, "Arial", clrLime);


PC1

Test PC2

How can I have the same distance between this two words on every pc? 

honest_knave
Moderator
2319
honest_knave  

The difference is most likely caused by the pc settings:

 

 

One possible work-around is to have an input setting in your EA or indicator which then adjusts the positioning accordingly.

sunshineh
1250
sunshineh  
OK, thanks for your answer!!! But what do you think, how could I do a Workaround?
sunshineh
1250
sunshineh  
Is there a posibility to get the Information about this dislay setting (100% or 125%) from winows?
whroeder1
16099
whroeder1  
sunshineh: Is there a posibility to get the Information about this dislay setting (100% or 125%) from winows?
Don't expect us to do your research for free. Top of every page is the link Freelance.
To add comments, please log in or register