TableColumn: setImage does not work correctly [message #451772] |
Tue, 08 March 2005 15:23  |
Eclipse User |
|
|
|
Hi there,
what's up with TableColumn.setImage??? I tried to set an image for a
TableColumn,
but it doesn't show an icon. Oddly enough, it does so when you embed the
setImage-Method within a SelectionListener.
This doesn't work -> Example:
final TableColumn column1 = new TableColumn(jobTable, SWT.CENTER);
column1.setWidth(50);
column1.setImage(imgSymbol);
This works: -> Example:
column1.addSelectionListener(new SelectionListener(){
public void widgetSelected(SelectionEvent e) {
column1.setImage(imgSymbol);
}
[....]
Any suggestions ?
|
|
|
|
Re: TableColumn: setImage does not work correctly [message #451991 is a reply to message #451885] |
Sat, 12 March 2005 06:13  |
Eclipse User |
|
|
|
thanks Grant, i'll do so.
Grant Gayed wrote:
> Your example snippets look fine, so please log a bug report with Platform -
> SWT and include the image that you're trying to set into the column header.
> Thanks,
> Grant
> "Boris Munivrana" <bmunivrana@web.de> wrote in message
> news:d0l1jc$vgd$1@www.eclipse.org...
>> Hi there,
>>
>> what's up with TableColumn.setImage??? I tried to set an image for a
>> TableColumn,
>> but it doesn't show an icon. Oddly enough, it does so when you embed the
>> setImage-Method within a SelectionListener.
>>
>> This doesn't work -> Example:
>>
>> final TableColumn column1 = new TableColumn(jobTable, SWT.CENTER);
>> column1.setWidth(50);
>> column1.setImage(imgSymbol);
>>
>> This works: -> Example:
>>
>> column1.addSelectionListener(new SelectionListener(){
>> public void widgetSelected(SelectionEvent e) {
>> column1.setImage(imgSymbol);
>> }
>> [....]
>>
>> Any suggestions ?
>>
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.09030 seconds