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)
BUTTON_SetBMPEx(hWIN4,BUTTON_BI_UNPRESSED,&dram_file[0],0,0);
Any suggestion? am I doing something wrong?
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)
BUTTON_SetBMPEx(hWIN4,BUTTON_BI_UNPRESSED,&dram_file[0],0,0);
Any suggestion? am I doing something wrong?