国内新闻
在屏幕指定位置写出文字
2019-01-11 23:45  浏览:931
马上注册,结交更多好友,下载更多资源

您需要 登录 才可以下载或查看,没有帐号?注册 通过Object系列函数,创建文字对象,设定纵横坐标和内容,还可以设定字体和大小

void writetext(string Labelname,string data,int x,int y,color ColorValue,int FontSize)//通过Object写文字
{
   ObjectDelete(Labelname);
   ObjectCreate(Labelname, OBJ_LABEL, 0, 0, 0);
   ObjectSetText(Labelname, data, FontSize, Arial , ColorValue);
   ObjectSet(Labelname, OBJPROP_CORNER, 0);
   ObjectSet(Labelname, OBJPROP_XDISTANCE, x);
   ObjectSet(Labelname, OBJPROP_YDISTANCE, y);
}复制代码

外汇交易有很大的风险性,本站所有资源均来自网络,请选择使用,如若出现亏损,本站不承担任何责任!

发表评论
0评