Download MetaTrader 5
To add comments, please log in or register
Sign up for MQL5.community to leave your comments!
sunshineh
1064
sunshineh 2014.12.18 18:35 

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
947
honest_knave 2014.12.18 18:58  

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
1064
sunshineh 2014.12.18 19:03  
OK, thanks for your answer!!! But what do you think, how could I do a Workaround?
sunshineh
1064
sunshineh 2014.12.21 14:31  
Is there a posibility to get the Information about this dislay setting (100% or 125%) from winows?
whroeder1
13589
whroeder1 2014.12.21 19:48  
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