How to make multiline text and image in ListWidget | developer.brewmp.com How to make multiline text and image in ListWidget | developer.brewmp.com

Developer

How to make multiline text and image in ListWidget

Forums:

Hi I'm trying to make list widget as below.

I need to put 2 (image + text) lines on each list item and another image on the middle-right side of the list item.

Currently, I could make 1 (image + text) line list item using "ImageStaticWidget" and putting "ImageStaticInfo" type data to Vector Model.

But, I have no idea how to put 2 (image + text) lines + additional image on each list item in ListWidget.

Could you please let me know if there is any possible way to make this?

Thank you.

You could do this with rich text widgets. Using the images as emoticons.

You could do this with rich text widgets. Using the images as emoticons.

You can create a container that contains the various widgets that are needed to display that content. That container would be the list item. Then have a listener for the value model that the list widget would be populating the list item data. In that listener, you can set the individual widgets with the value model data.

You can create a container that contains the various widgets that are needed to display that content. That container would be the list item. Then have a listener for the value model that the list widget would be populating the list item data. In that listener, you can set the individual widgets with the value model data.

Hi,
I did in the way mentioned .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?

Hi,
I did in the way mentioned .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?

Hi,
I did in the way mentioned .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?

Hi,
I did in the way mentioned .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?