Place image on button

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

    • Place image on button

      Hello,
      When I use BUTTON_SetBitmap or BUTTON_SetBitmapEx, it doesn't remove the default skinflex and the image is shown on top of the default skin. Should I disable or enable anything? Or should I change the drawing callback? If so how can I change it for different cases? I mean when the button is pressed, when it is released and when it is disabled. I use emwin v6.1 provided by keil on stm32f429.
    • Hi,

      the best way would be to overwrite the callback of the BUTTON. By doing this, only your callback will determine how the BUTTON is being drawn.

      You can find a sample in the wiki that demonstrates, how this can be done.

      Best regards,
      Florian
      Please read the forum rules before posting.

      Keep in mind, this is *not* a support forum.
      Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
      Should you be entitled to support you can contact us via our support system: segger.com/ticket/

      Or you can contact us via e-mail.