Setting image on button and changing background of that button

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Setting image on button and changing background of that button

      I created one button on which i want to set image which is transparent. When that button is pressed i want to change the background of that image which is button.
      i tried to set background on that button in dialog initialization for pressed and unpressed state but behavior is something like for the first time it is working well but when some popup comes on that and after that popup goes some part of that button background is gone. and if i am touching that button whole background will go.
      It is taking background color as black in this condition(can you please tell me why emwin is behaving like that)
      In this situation even if i am closing that window and coming back to that window the background is still black.
      same i tried with custom callback function also but its not working. please help me to understand this.