How can I get the selected item of a LISTWHEEL item to have a semi-transparent background color?
I tried this:
C
#include "GUI.h"
#include "LISTWHEEL.h"
#include <stdio.h>
const char *pList[] =
{
"1st",
"2nd",
"3rd",
"4th",
NULL,
};
void MainTask(void)
{
GUI_Init();
// GUI_EnableAlpha(1);
GUI_SetBkColor(GUI_WHITE);
GUI_Clear();
GUI_DrawGradientV(13, 5, 70, 65, GUI_YELLOW, GUI_GREEN);
LISTWHEEL_Handle hWin;
hWin = LISTWHEEL_CreateEx(10, 10, 50, 45, WM_HBKWIN, WM_CF_SHOW | WM_CF_HASTRANS, 0, GUI_ID_LISTWHEEL0, pList);
LISTWHEEL_SetBkColor(hWin, LISTWHEEL_CI_SEL, GUI_MAKE_COLOR((0x70uL << 24) | 0x0000FF));
LISTWHEEL_SetBkColor(hWin, LISTWHEEL_CI_UNSEL, GUI_TRANSPARENT);
while(1)
{
GUI_Delay(100);
}
}
Display More
and the result is:
[Blocked Image: https://s17.postimg.org/73dzfhw8f/semitransparent_List_Wheel.png]
instead, I can get the text semi-transparent if I try to get it.
best regards
Max