Hello,
When i create the Widget Icon view using resource table i don't see the text displayed under the icons. But when i use createEx function to create the widget icon view then the text under the icons is visible.
//resource table
{ ICONVIEW_CreateIndirect, "Iconview", ID_ICONVIEW_1, 0, 227, 480, 60, WM_CF_SHOW | WM_CF_HASTRANS | ICONVIEW_CF_AUTOSCROLLBAR_V, 130, 30 },
//createEx function
ICONVIEW_CreateEx(0, 227, 480, 60, WM_HBKWIN, WM_CF_SHOW | WM_CF_HASTRANS, ICONVIEW_CF_AUTOSCROLLBAR_V, ID_ICONVIEW_1, 130, 30);
what could be the issue here. all other code to initialize the icon view is same other than method to create the iconview. code below
ICONVIEW_SetTextAlign(Iconview_Handle2,GUI_TA_HCENTER | GUI_TA_BOTTOM);
ICONVIEW_SetFont(Iconview_Handle2, &GUI_FontEncodeSansR8pt);
for (i = 0; i < GUI_COUNTOF(Menu_aBitmapItem_Inactive); i++) {
//* Add icons to the widget
ICONVIEW_SetSpace(Iconview_Handle2,GUI_COORD_X,40);
ICONVIEW_SetSpace(Iconview_Handle2,GUI_COORD_Y,0);
//add inactive bitmaps to iconview
ICONVIEW_AddBitmapItem(Iconview_Handle2, Menu_aBitmapItem_Inactive.pBitmap, "Text");//Menu_aBitmapItem_Inactive[i].pText
}
ICONVIEW_SetIconAlign(Iconview_Handle2, ICONVIEW_IA_HCENTER | ICONVIEW_IA_TOP);
//Set color to use if icon not selected
ICONVIEW_SetTextColor(Iconview_Handle2,ICONVIEW_CI_UNSEL,GUI_MAKE_COLOR(0x00D7D8D7));
//set color to use if icon selected
//ICONVIEW_SetTextColor(Iconview_Handle2,ICONVIEW_CI_SEL,GUI_MAKE_COLOR(0x0074BA6D));
//set back colors for icons
//ICONVIEW_SetBkColor(Iconview_Handle2, ICONVIEW_CI_SEL, GUI_WHITE);
Regards,
Anuj
When i create the Widget Icon view using resource table i don't see the text displayed under the icons. But when i use createEx function to create the widget icon view then the text under the icons is visible.
//resource table
{ ICONVIEW_CreateIndirect, "Iconview", ID_ICONVIEW_1, 0, 227, 480, 60, WM_CF_SHOW | WM_CF_HASTRANS | ICONVIEW_CF_AUTOSCROLLBAR_V, 130, 30 },
//createEx function
ICONVIEW_CreateEx(0, 227, 480, 60, WM_HBKWIN, WM_CF_SHOW | WM_CF_HASTRANS, ICONVIEW_CF_AUTOSCROLLBAR_V, ID_ICONVIEW_1, 130, 30);
what could be the issue here. all other code to initialize the icon view is same other than method to create the iconview. code below
ICONVIEW_SetTextAlign(Iconview_Handle2,GUI_TA_HCENTER | GUI_TA_BOTTOM);
ICONVIEW_SetFont(Iconview_Handle2, &GUI_FontEncodeSansR8pt);
for (i = 0; i < GUI_COUNTOF(Menu_aBitmapItem_Inactive); i++) {
//* Add icons to the widget
ICONVIEW_SetSpace(Iconview_Handle2,GUI_COORD_X,40);
ICONVIEW_SetSpace(Iconview_Handle2,GUI_COORD_Y,0);
//add inactive bitmaps to iconview
ICONVIEW_AddBitmapItem(Iconview_Handle2, Menu_aBitmapItem_Inactive.pBitmap, "Text");//Menu_aBitmapItem_Inactive[i].pText
}
ICONVIEW_SetIconAlign(Iconview_Handle2, ICONVIEW_IA_HCENTER | ICONVIEW_IA_TOP);
//Set color to use if icon not selected
ICONVIEW_SetTextColor(Iconview_Handle2,ICONVIEW_CI_UNSEL,GUI_MAKE_COLOR(0x00D7D8D7));
//set color to use if icon selected
//ICONVIEW_SetTextColor(Iconview_Handle2,ICONVIEW_CI_SEL,GUI_MAKE_COLOR(0x0074BA6D));
//set back colors for icons
//ICONVIEW_SetBkColor(Iconview_Handle2, ICONVIEW_CI_SEL, GUI_WHITE);
Regards,
Anuj