我做了一些功能,使视觉更容易,因为你们帮助过我,我想我会捐赠这些东西

void LineMaker(字符串名称,颜色LineColor,双价格,字符串说明){
ObjectCreate(name,OBJ_HLINE,0,TimeCurrent(),price);
ObjectSet(名称,OBJPROP_STYLE,STYLE_SOLID);
ObjectSet(名称,OBJPROP_COLOR,LineColor);
ObjectSet(name,OBJPROP_BACK,true);
ObjectSetText(名称,描述,如图8所示,Arial字体,LineColor);
返回(0);
}
void LabelMaker(string lblname,int x,int y,string window,string txt,int size,string font,color txtcolor){
ObjectCreate(lblname,OBJ_LABEL,WindowFind(window),0,0);
ObjectSet(lblname,OBJPROP_CORNER,0);
ObjectSet(lblname,OBJPROP_XDISTANCE,x);
ObjectSet(lblname,OBJPROP_YDISTANCE,y);
ObjectSetText(lblname,txt,size,font,txtcolor);
返回(0);
}

例如做一条线
LineMaker(linename,LineColor,价格,描述);

例如制作标签
LabelMaker(labelname,X,Y,分开的窗口名称,你想要说的内容,字体大小,Arial,字体颜色);