Friday, May 25th 2018, 5:06am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.



Date of registration: Jul 17th 2012

Posts: 47


Friday, November 9th 2012, 11:55am

Clearing the bmps above butttons


I have a calendar app, there in
the calendar am setting bmp when on particular dates in calendar.

Like if any event occurred on
that day , I will set bmp image on that day.

My days are all buttons eg
1- 31 days are buttons.

Based on event I’ll set bmp on
the button for that particular month on that given day.

The problem is if I traverse to
next or previous month ,the bmps are retaining on buttons .

All the buttons only once am
creating and am not redrawing.

How can I clear the images
without deleting the buttons



Date of registration: May 26th 2009

Posts: 1,022


Monday, November 12th 2012, 2:13pm

Hello Venkat,

Have you tried passing NULL for the parameter pBitmap?

Prototype of the function:
void BUTTON_SetBitmap(BUTTON_Handle hObj, unsigned int Index, const GUI_BITMAP* pBitmap);

Best regards,

Similar threads