微信扫一扫 分享朋友圈

已有 71 人浏览分享

开启左侧

三段封装好的显示文本函数拿去用

[复制链接]
71 0
三段封装好的显示文本函数拿去用


//| CreateTextLable() function


void CreateTextLable


(string TextLableName, string Text, int TextSize, string FontName, color TextColor, int TextCorner, int X, int Y )


  {


//---


   ObjectCreate(TextLableName, OBJ_LABEL, 0, 0, 0);


   ObjectSet(TextLableName, OBJPROP_CORNER, TextCorner);


   ObjectSet(TextLableName, OBJPROP_XDISTANCE, X);


   ObjectSet(TextLableName, OBJPROP_YDISTANCE, Y);


   ObjectSetText(TextLableName,Text,TextSize,FontName,TextColor);


//----


  }






//| SetTextLable() function                                          |






void SetTextLable


(string TextLableName, string Text, int TextSize, string FontName, color TextColor, int TextCorner, int X, int Y )


  {


//---


   ObjectSet(TextLableName, OBJPROP_CORNER, TextCorner);


   ObjectSet(TextLableName, OBJPROP_XDISTANCE, X);


   ObjectSet(TextLableName, OBJPROP_YDISTANCE, Y);


   ObjectSetText(TextLableName,Text,TextSize,FontName,TextColor);


//----


  }






//| TimeCount() function                                            |






void TimeCount


(string TextLableName, int StartNumber, int StopNumber, int Inerval, int TextSize, string FontName, color TextColor, int TextCorner, int X, int Y )


  {


//---


   CreateTextLable(TextLableName,"-"+StartNumber+"-",TextSize,FontName,TextColor,TextCorner,X,Y);


   WindowRedraw();


   PlaySound("WAIT");


   for(int Count=StartNumber+1;Count<=StopNumber;Count++)


    {


     Sleep(Inerval);


     PlaySound("WAIT");


     SetTextLable(TextLableName,"-"+ Count+"-",TextSize,FontName,TextColor,TextCorner,X,Y);


     WindowRedraw();


    }


   Sleep(Inerval);


   ObjectDelete(TextLableName);


//----


  }



大家在看了小编以上对"三段封装好的显示文本函数拿去用"的介绍后应该都清楚了吧,希望对大家做单有所帮助。如果大家还想要下载更多有关"三段封装好的显示文本函数拿去用"的相关EA源码,敬请关注汇探网下载。我们会持续更新交易系统,EA源码。

举报 使用道具

回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

精彩推荐
热门资讯
网友晒图
图文推荐
  • 联系我们
  • 邮箱:1912582076#qq.com(请把#改成@)
  • 电话:400-178-8526
  • QQ客服 1912582076
  • 工作时间:周一至周五(早上9点至下午5:30点)
  • 微信公众平台

  • 客服微信号

QQ|外汇EA|炒外汇论坛|外汇ea|汇探网 |网站地图

GMT+8, 2026-3-20 05:28 , Processed in 0.172759 second(s), 29 queries .

Powered by 汇探网 免责申明:本平台仅提供 外汇ea, 外汇指标模板所有产品及展示信息均由第三方发布提供.|投资有风险,交易需谨慎.

Copyright © 2014-2023, 汇探网-提供 外汇MT4指标,外汇EA下载,外汇交易系统,外汇开户赠金视频教程,外汇软件工具等.版权所有,复制必究.