Comment() function in MetaEditor 4

 

Hi,

How do I have the comment() function display text in the top right hand corner or bottom right hand corner of the window?

Thanks in advance!

 
only with spaces & \n use objects instead if u want control the location
 

Hi qjol,

Thanks for your reply, \n what does that mean?

 
wacs:

Hi qjol,

Thanks for your reply, \n what does that mean?


Comment("Hello, its me"); -->> output is Hello, its me

Comment("Hello,\n its me"); -->> output is:

Hello,

its me

But Comment Function ALWAYS is on Top Left in Chart.

If you need Top Right Hand Corner - like you wrote - you dont need Comment. Take a look at Object an label, as example:

void WriteLabel(string sName,string sValue,color cValue,int Dist)
{
   if (ObjectFind(sName)<0)
   {
   ObjectCreate(sName,OBJ_LABEL,0,0,0,0,0);
   ObjectSet(sName,OBJPROP_CORNER,1);
   ObjectSet(sName,OBJPROP_XDISTANCE,25);
   ObjectSet(sName,OBJPROP_YDISTANCE,Dist);
   }
   ObjectSetText(sName,sValue,12,"Tahoma",cValue);
}