|
void DrawLabel(string obj_Name, string obj_Text, int obj_X, int obj_Y, color obj_Color, int obj_Size, string obj_Font, int obj_Coner, int obj_Window, bool obj_ShowBackup) {
//ObjectDelete(obj_Name);
int FindObjectRtn=ObjectFind(obj_Name);
if(FindObjectRtn<0)
{
ObjectCreate(obj_Name, OBJ_LABEL, obj_Window, 0, 0);
ObjectSetText(obj_Name, obj_Text, obj_Size, obj_Font, obj_Color);
ObjectSet(obj_Name, OBJPROP_CORNER, obj_Coner);
ObjectSet(obj_Name, OBJPROP_XDISTANCE, obj_X);
ObjectSet(obj_Name, OBJPROP_YDISTANCE, obj_Y);
ObjectSet(obj_Name, OBJPROP_BACK, obj_ShowBackup);
}
else
{
ObjectSetText(obj_Name, obj_Text, obj_Size, obj_Font, obj_Color);
ObjectSet(obj_Name, OBJPROP_CORNER, obj_Coner);
ObjectSet(obj_Name, OBJPROP_XDISTANCE, obj_X);
ObjectSet(obj_Name, OBJPROP_YDISTANCE, obj_Y);
ObjectSet(obj_Name, OBJPROP_BACK, obj_ShowBackup);
}
}
|
|