cancel
Showing results for 
Search instead for 
Did you mean: 

3 buttons with image

Ebun.1
Senior

Thank you for helping.

environment:

TouchGFX Ver 4.16.1

Prepare two released images and one pressed image.

While pressed, the pressed image is displayed.

I want to switch the image of the released image every time the button is pressed and released.

How should I implement it?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
MM..1
Chief II

BITMAP_MENU_SEL_ID is from db you use your.

buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_MENU_SEL_ID), touchgfx::Bitmap(BITMAP_MENU_SEL_ID));

View solution in original post

2 REPLIES 2
MM..1
Chief II

BITMAP_MENU_SEL_ID is from db you use your.

buttonWithLabel1.setBitmaps(touchgfx::Bitmap(BITMAP_MENU_SEL_ID), touchgfx::Bitmap(BITMAP_MENU_SEL_ID));

Ebun.1
Senior

Hi MM1

I am always grateful for your help.

I didn't understand what it meant, but I could understand it by looking at BitmapDatabase.cpp.

I was able to operate as desired.

Thank you very much.