About Store Forum Documentation Contact



Post Reply 
Using images in listbox
Author Message
Biga Offline
Member

Post: #1
Using images in listbox
Hello,

not quite clear that can I use other GUI elements in a listbox row or only data types? I read about MEMBER setup, but that is useable also for GUI datatypes? I mean can I have a listbox entry with image and button?
Sth like this?

Code:
[------------------------------------------------------]
________                                                                ]
[           ]                                                               ]
[ Photo1]   |   Name1   |   Desc1  |  [Button1]              ]
[           ]                                                               ]
----------                                                               ]
--------------------------------------------------------
________                                                                ]
[           ]                                                               ]
[ Photo2]   |   Name2   |   Desc2  |  [Button2]              ]
[           ]                                                               ]
----------                                                               ]
--------------------------------------------------------

...more rows....

thanks,
Gabor

found this thread and I have the same question it seems
http://www.esenthel.com/community/showth...light=list

but the answer was about region, not about listbox row I assume....

after experimenting, seems MEMBER types can be only base types like int, byte, etc.
it is correct?
other solution can be I add a special token to my string like IMG:file.ext
and extending listbox draw method to place image to listbox row if it begins with my token?
(This post was last modified: 04-28-2014 03:47 PM by Biga.)
04-28-2014 03:09 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Using images in listbox
Hi,

Yes you can use Image, Image* and ImagePtr for the List.
04-29-2014 07:23 AM
Find all posts by this user Quote this message in a reply
Biga Offline
Member

Post: #3
RE: Using images in listbox
thanks a lot! I used ImagePtr and with imageptr.get I was able to show an image asset with id. my problem is image now fits to the text size so very small. how could I set the image size, I would like the image shown bigger.
I found the imageSizeBase method but Im not sure how to use it....
or I can only set the text size and image will fit to it?
(I would like keep the original text size but centered in row with bigger image, sth like in first post).
04-29-2014 09:09 AM
Find all posts by this user Quote this message in a reply
Post Reply