Same fonts >> different sizes on different pcs

 

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? 

 

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.

 
OK, thanks for your answer!!! But what do you think, how could I do a Workaround?
 
Is there a posibility to get the Information about this dislay setting (100% or 125%) from winows?
 
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.
Reason: