Bug 275285 - enhance the list widget to support image and text
enhance the list widget to support image and text
Status: RESOLVED WONTFIX
Product: Platform
Classification: Eclipse
Component: SWT
3.3.2
PC Windows XP
: P3 enhancement (vote)
: ---
Assigned To: Platform-SWT-Inbox CLA Friend
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2009-05-07 07:11 EDT by zhongnanhai CLA Friend
Modified: 2009-05-11 09:12 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zhongnanhai CLA Friend 2009-05-07 07:11:19 EDT
We often want to show a list of images or images with text,but there is still none widget to support this simple and fundamental function.A possible workaround is using a table widget instead of list widget.
However,it is still necessary and import to enhance the list widget.If the list widget can support image and text,then everything about showing images would be easy.
Comment 1 Felipe Heidrich CLA Friend 2009-05-07 12:30:33 EDT
Why can't you use a Table ?
Comment 2 zhongnanhai CLA Friend 2009-05-07 21:06:39 EDT
(In reply to comment #1)
> Why can't you use a Table ?
> 
Yes,the table certainly can fulfil this function.But don't you think that it is just a workaround and showing images would be a very fundamental function which many people often want to use and they usually first consider the list widget rather than table widget?
Comment 3 Steve Northover CLA Friend 2009-05-08 11:46:16 EDT
List widget should be renamed "ListOfStrings" because that's what it is on every platform.  It dates back to Windows 3.1 and Motif.  You can see it today in the basic list control for the browsers (ie no icon).
Comment 4 zhongnanhai CLA Friend 2009-05-09 01:46:29 EDT
(In reply to comment #3)
> List widget should be renamed "ListOfStrings" because that's what it is on
> every platform.  It dates back to Windows 3.1 and Motif.  You can see it today
> in the basic list control for the browsers (ie no icon).
> 

In the early version of SWT,Button widget can only show text other than image,but new Button widget can show both now.
Though we can say that List is just a widget to show a list of strings and should not do anything more.But if it can support a list of images or images and text,don't you think it's a wonderful feature like the Button widget?

Comment 5 zhongnanhai CLA Friend 2009-05-11 03:29:24 EDT
Table is just a workaround but not a complete solution.
Comment 6 Felipe Heidrich CLA Friend 2009-05-11 09:12:37 EDT
(In reply to comment #5)
> Table is just a workaround but not a complete solution.

Table is the solution.

In the Button case the user didn't have an option.


Please, before you open this problem again, give one valid reason why you can't use a Table to show images+text.