You might want to try the pre-existing Table
widget. That should give you all the functionality you need.
Daniel
Johan Tibell wrote:
Hi,
I'm making a small IM like application and I'm in need of a user list
widget similar to the one in MSN Messenger, a small icon and a text
label. I'm trying to decide which road to go:
1. Extend List to add an image in addition to the text label.
2. Use JFace and extend ListView to add the behaviour.
3. Make a custom widget and make a list by putting several such widgets
in a container with a RowLayout.
It is important that the text label is selectable, just like with the
standard List.
1 and 2 are kinda similar and I'll probably go for number two but I'd
like to get some input. Have anyone done something similar already?
Regards,
Johan Tibell
|