Effect "click button" on Object Button

 

Hi guys,

I created button by example from manual: https://docs.mql4.com/constants/objectconstants/enum_object/obj_button but this button haven´t effect click on button. Or maybe have some error?

How get effect click on button...? 

Thanks 

 

Actually it is more like this ...

Pressed state > img1

Unpressed state > img2

 
endy5:

Hi guys,

I created button by example from manual: https://docs.mql4.com/constants/objectconstants/enum_object/obj_button but this button haven´t effect click on button. Or maybe have some error?

How get effect click on button...? 

Thanks 

OnChartEvent() 

................. 

if(id==CHARTEVENT_OBJECT_CLICK) 

 
deysmacro:

Actually it is more like this ...

Pressed state > img1

Unpressed state > img2

Maybe insert any easy example code, please? Thank you.
Reason: