View previous topic :: View next topic |
Author |
Message |
zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Fri Feb 27, 2009 6:42 pm Post subject: Adding Pictures to ListBox |
|
|
Hello,
I was wondering if it is possible to add a PictureBox to a ListBox. I tried with:
listBox.items.add(picBox);
But it does not show up in the list. It appears as though a blank item was added. Is this functionality not supported? If it is supported, what am I doing wrong?
Thanks,
Zane _________________ わたしがプログラマだよ! |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Mar 03, 2009 7:26 pm Post subject: Re: Adding Pictures to ListBox |
|
|
ListBox isn't for holding controls or images, but just general objects. The default is for it to show the object's string (toString). However, I use ListBox all the time for images by drawing them with drawMode=DrawMode.OWNER_DRAW_FIXED or VARIABLE. Entice uses this for the properties box. DFL comes with an example of using this. |
|
Back to top |
|
|
|