Download MetaTrader 5

Png inside chart

To add comments, please log in or register
fly7680
636
fly7680  
I read various discussions and I understand that you can load a png image only through this code, however, I get this error: Unknown resource type MQL4 \ Files \ dollar. png



#resource"\\Files\\dollar.png";

    
ObjectCreate    (0,"name",OBJ_BITMAP_LABEL,0,0,0);
    ObjectSetString (0,"name",OBJPROP_BMPFILE,0,"::Files\\dollar.png");
 
Fernando Sanches
162
Fernando Sanches  
fly7680:
I read various discussions and I understand that you can load a png image only through this code, however, I get this error: Unknown resource type MQL4 \ Files \ dollar. png



#resource"\\Files\\dollar.png";

    
ObjectCreate    (0,"name",OBJ_BITMAP_LABEL,0,0,0);
    ObjectSetString (0,"name",OBJPROP_BMPFILE,0,"::Files\\dollar.png");
 
The Metatrader d'ont load .png image...
...load only .bmp.

try this:
#resource "\\Images\\dollar.bmp"
#define YOUR_IMG "::Images\\dollar.bmp"

...

    ObjectCreate    (0,"name",OBJ_BITMAP_LABEL,0,0,0);
    ObjectSetString (0,"name",OBJPROP_BMPFILE,0,"YOUR_IMG");


best regards,
Fernando Sanches
To add comments, please log in or register