İş tamamlandı
Şartname
Hi,
i want print some messages directly to screen and not to Journal.
I use following function. But sometimes it works well, sometimes not and in all cases messages are disappearing after few bars. I want that messages are shown until i call again "printScreen".
void drawFixedLbl(string oldObj, string objname, string s, int Corner, int DX, int DY, int FSize, string Font, color c, bool bg=false)
{
if(ObjectFind(objname)<0) {ObjectDelete(oldObj); WindowRedraw();}
if(ObjectFind(objname)<0) {ObjectCreate(objname,OBJ_LABEL,0,0,0);}
ObjectSet(objname,OBJPROP_CORNER,Corner);
ObjectSet(objname,OBJPROP_XDISTANCE,DX);
ObjectSet(objname,OBJPROP_YDISTANCE,DY);
ObjectSet(objname,OBJPROP_BACK,bg);
ObjectSetText(objname,s,FSize,Font,c);
}