void SetUpPLText(string Name,color Color,double price)
{
ObjectDelete(Name);
ObjectCreate(Name,OBJ_TEXT,0,0,0);
ObjectSet(Name,OBJPROP_BACK,back);
ObjectSet(Name,OBJPROP_TIME1,Time[0]);
ObjectSet(Name,OBJPROP_PRICE1,price); /* double price */
ObjectSetText(Name,Name,7,Font,Color);
GetLastError();
}
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
void SetUpPriceLabel(string Name,color Color,double price)
{
ObjectDelete(Name);
ObjectCreate(Name,OBJ_ARROW,0,0,0);
ObjectSet(Name,OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE);
ObjectSet(Name,OBJPROP_COLOR,Color);
ObjectSet(Name,OBJPROP_TIME1,Time[0]);
ObjectSet(Name,OBJPROP_PRICE1,price); /* double price */
GetLastError();
}
这是我写的程序的一部分写完了之后ObjectSetText和OBJPROP_ARROWCODE,SYMBOL_RIGHTPRICE的内容只能在屏幕右侧显示一般,并且重叠,这个应该怎么弄才分开啊,并且完全显示呢?请高手帮帮忙!!!!
|