Sunday, February 25th 2018, 5:05am UTC+1

You are not logged in.

  • Login
  • Register



Date of registration: Sep 18th 2017

Posts: 1


Monday, September 18th 2017, 10:06am

Button_SetBMPEx() function does not work

I try to use the Button_SetBMPEx() function but it does not work. On the handbook it is written that this function allows to Set a bitmap from external memory to be displayed on a button widget but using it I do not see anything on the button. This is my code:

hWIN4 = BUTTON_CreateEx(68,225,100,44,WM_HBKWIN,WM_CF_SHOW,0,0);
NOR_flash_INIM_command(NOR_INIM_COMM_READ,SF_ADD_BMP_SABOT_CENTRALE,1124,(U8 *)&dram_file[0],USA_MUTEX); (This function reads from serial flash the .bmp file and save it on U8 dram_file[2000] buffer)

Any suggestion? am I doing something wrong?

SEGGER - Schoenen

Super Moderator

Date of registration: Aug 13th 2015

Posts: 496


Tuesday, September 19th 2017, 9:20am


On the first look it seems that this should work.

I'm not sure how big the BMP is, but 2000 bytes seems a bit small.

What kind of BMP file is this?

Please take a look into chapter 9.1.1 'Supported formats' of the emWin user manual. There are all supported formats listed.


Similar threads