forked from dingmaotu/mql4-lib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathText.mqh
20 lines (19 loc) · 818 Bytes
/
Text.mqh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//+------------------------------------------------------------------+
//| Text.mqh |
//| hengzhe li |
//| https://www.github.com |
//+------------------------------------------------------------------+
#property copyright "hengzhe li"
#property link "https://www.github.com"
#property strict
#include "FreeFormElement.mqh"
class Text:public FreeFormElement
{
public:
bool setPrice(double price){return setDouble(OBJPROP_PRICE,price);}
bool setDatetime(datetime date){return setInteger(OBJPROP_TIME,date);}
Text(Panel *parent,string name,string text)
:FreeFormElement(parent,name,OBJ_TEXT){
setText(text);
}
};