Page 1 of 1

Add pictures and words

Posted: Mon Dec 21, 2009 07:03
by zhk450861222
CE:
Thank you to the answer before.
Now I want to achieve in the list box add pictures and words within a Item.
How to do?
Hope to obtain your help!

Re: Add pictures and words

Posted: Tue Dec 22, 2009 10:14
by CrazyEddie
I'm not sure how this question differs from the previous time you asked (viewtopic.php?t=4405).

Or are you now talking about the ListboxItem based Listbox as opposed to the ItemListbox? If this is the case, then you might be able to use the formatting tags if you're using 0.7.x, if you're using 0.6.x or earlier then you'd need to create a custom ListboxItem class.

CE.

Re: Add pictures and words

Posted: Tue Dec 22, 2009 10:31
by scriptkid
Indeed, like this one: http://www.cegui.org.uk/wiki/index.php/ ... istboxItem

Just replace 'checkbox' with 'image' ;)

Re: Add pictures and words

Posted: Wed Dec 23, 2009 09:59
by zhk450861222
Thanks to reply!
The last is simply add pictures,
Now is to achieve images and text in the same Item.

Re: Add pictures and words

Posted: Thu Dec 24, 2009 08:40
by CrazyEddie
If you're using 0.7.x you can embed images using the control tags being discussed elsewhere, for example, set the item text to:

Code: Select all

"This is an item [image='set:TaharezLook image:MouseArrow'] with an embedded image"


If you're not using 0.7.x, then you have to create your own solution!!

CE.

Re: Add pictures and words

Posted: Thu Dec 24, 2009 09:50
by zhk450861222
Thanks!
I tried to do it.