kkh allan:
What is the problem?
How about this?
ObjectCreate(0,"Name1",OBJ_BITMAP_LABEL,0,0,0); ObjectSetString(0,"Name1",OBJPROP_BMPFILE,1,"\\Images\\unchecked.bmp"); //ObjectSetString(0,"Name1",OBJPROP_BMPFILE,0,"\\Images\\checked.bmp");
if(ObjectGetInteger(0,sparam,OBJPROP_STATE)==1) { ObjectSetString(0,"Name1",OBJPROP_BMPFILE,0,"\\Images\\checked.bmp"); //ObjectSetInteger(0,sparam,OBJPROP_STATE,0); } else if(ObjectGetInteger(0,sparam,OBJPROP_STATE)==0) { ObjectSetString(0,"Name1",OBJPROP_BMPFILE,1,"\\Images\\unchecked.bmp"); //ObjectSetInteger(0,sparam,OBJPROP_STATE,1);} }
Ah, now I see..
It works fine. Thanks a lot :)

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi folks,
I am a kind of noob in mql5 so please be patient.
I try to create a checkbox, but it drives me mad. As long as i have OBJPROP_SELECTABLE true everything works fine. If i set it to false the BMP doesnt change.
What is the problem?