Good Morning:
I'm using the listview widget and I can not get the background to look transparent
I activate the transparent flag in the creation of the object.
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_LISTA, 0, 0, 480, 272, WM_CF_MEMDEV | WM_CF_MEMDEV_ON_REDRAW, 0x0, 0 },
{ IMAGE_CreateIndirect, "Image", ID_LISTA_IMAGE_0, 0, 0, 480, 272, 0, 0, 0 },
{ LISTVIEW_CreateIndirect, "Listview", ID_LISTVIEW_0, 0, 40, 480, 232, WM_CF_HASTRANS, 0x0, 0 },
{ IMAGE_CreateIndirect, "Image", ID_LISTA_IMAGE_BARRA, 0, 0, 480, 40, 0, 0, 0 },
{ TEXT_CreateIndirect, "Text", ID_LISTA_TEXT_REFRIGERANTE, 20, 0, 460, 40, 0, 0x0, 0 },
{ TEXT_CreateIndirect, "Text", ID_LISTA_TEXT_MENU, 0, 0, 460, 40, 0, 0x0, 0 },
// USER START (Optionally insert additional widgets)
// USER END
};
When I define the color of the background, I indicate that it is transparent and the screen paints the background of black color
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_UNSEL, GUI_TRANSPARENT);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SEL, GUI_TRANSPARENT);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SELFOCUS, GUI_ORANGE);
But, if I define that the background is "invalid color", the screen paints the background of white color.
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_UNSEL, GUI_INVALID_COLOR);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SEL, GUI_INVALID_COLOR);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SELFOCUS, GUI_ORANGE);
What should I do to see the transparent background?
I'm using the listview widget and I can not get the background to look transparent
I activate the transparent flag in the creation of the object.
static const GUI_WIDGET_CREATE_INFO _aDialogCreate[] = {
{ WINDOW_CreateIndirect, "Window", ID_WINDOW_LISTA, 0, 0, 480, 272, WM_CF_MEMDEV | WM_CF_MEMDEV_ON_REDRAW, 0x0, 0 },
{ IMAGE_CreateIndirect, "Image", ID_LISTA_IMAGE_0, 0, 0, 480, 272, 0, 0, 0 },
{ LISTVIEW_CreateIndirect, "Listview", ID_LISTVIEW_0, 0, 40, 480, 232, WM_CF_HASTRANS, 0x0, 0 },
{ IMAGE_CreateIndirect, "Image", ID_LISTA_IMAGE_BARRA, 0, 0, 480, 40, 0, 0, 0 },
{ TEXT_CreateIndirect, "Text", ID_LISTA_TEXT_REFRIGERANTE, 20, 0, 460, 40, 0, 0x0, 0 },
{ TEXT_CreateIndirect, "Text", ID_LISTA_TEXT_MENU, 0, 0, 460, 40, 0, 0x0, 0 },
// USER START (Optionally insert additional widgets)
// USER END
};
When I define the color of the background, I indicate that it is transparent and the screen paints the background of black color
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_UNSEL, GUI_TRANSPARENT);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SEL, GUI_TRANSPARENT);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SELFOCUS, GUI_ORANGE);
But, if I define that the background is "invalid color", the screen paints the background of white color.
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_UNSEL, GUI_INVALID_COLOR);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SEL, GUI_INVALID_COLOR);
LISTVIEW_SetBkColor(hItem, LISTVIEW_CI_SELFOCUS, GUI_ORANGE);
What should I do to see the transparent background?