Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,

In email app, i'm showing inbox emails using List widget and
IVectormodel_Add. But for mails, i have to show some images like
attachment image, unread and read images. Is it possible to add these
images to this IVectorModel_Add/Listwidget?

I tried using ImageStaticInfo(passing both image and text) and
passing this data to IVectorModel_Add. But it is showing junk in the
list.
This code snippet written is

" nErr = ISHELL_CreateInstance(pMe->piShell, AEECLSID_ImageStaticWidget, (void **)&pIWidget);
imginfo.pwText = paszText;
imginfo.piImage = ISHELL_LoadResImage(pMe->piShell, "sam.bar", IDI_PAPERCLIP);
nErr = IWidget_SetImageStaticInfo(pIWidget, &imginfo, NULL);
nErr = IVectorModel_Add(pIVectorModel, &imginfo);"

I did any mistake or we have to use another way?

Thanks
Jithendra

Looks like your approach is incorrect. Add data (image, text) to vector model and use the imagestatic widget as item widget of the list; no need to set the image explicitly. see list widget documentation for more details.If the list item has to be custom data (multiple images, text etc.) then you can go for list container. See https://developer.brewmp.com/forum/custom-items-list-container for code snippet.

Looks like your approach is incorrect. Add data (image, text) to vector model and use the imagestatic widget as item widget of the list; no need to set the image explicitly. see list widget documentation for more details.If the list item has to be custom data (multiple images, text etc.) then you can go for list container. See https://developer.brewmp.com/forum/custom-items-list-container for code snippet.

 
Hey It is working man. Thanks. I just decorated it.

 
Hey It is working man. Thanks. I just decorated it.