Hi All,
I'm trying to put a bmp Icon which is located as a file in flash on a button, as far as I understand I have to use the BUTTON_SetBMPEx() function with the file pointer to the *.bmp file. I'm using this function right at the beginning where all the widgets get created.
Unfortunately it doesn't work. The Button will be displayed but bare without the bmp image.
Any help is appreciated
Best Regards
Benjamin
I'm trying to put a bmp Icon which is located as a file in flash on a button, as far as I understand I have to use the BUTTON_SetBMPEx() function with the file pointer to the *.bmp file. I'm using this function right at the beginning where all the widgets get created.
C Source Code
- [...]
- fsStat = finit("N0:");
- fsStat = fmount("N0:");
- ptr_IconFile = fopen("N0:\\ZIcon.bmp","r"); //returns a valid ptr!
- [...]
- mainWin = WM_CreateWindow(pPara->xPosWin,pPara->yPosWin,pPara->xSizeWin,pPara->ySizeWin,WM_CF_SHOW, mainWinCallBack, 0);
- hZButton = BUTTON_CreateEx(120, 172, 80, 80, mainWin, WM_CF_SHOW, 0, Z_BUTTON_ID);
- BUTTON_SetBMPEx(hZButton, BUTTON_BI_UNPRESSED, ptr_IconFile, 0, 0);
- [...]
Unfortunately it doesn't work. The Button will be displayed but bare without the bmp image.
Any help is appreciated
Best Regards
Benjamin