[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Where to find checkbox images for TableViewer
|
Hi,
Well the checkbox displayed in Table/Tree using SWT.CHECK are drawn by
the OS and that's why there's no image for them available. Of course you
could use Button(SWT.CHECK) and put them in your Table see
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet126.java
If you really want it platform independent then you have to create the
image form a check box on the fly using GC.
TableViewer doesn't provide the possiblity to place arbitary controls in
the table but it might be an interesting idea to provide something like
this in 3.3. I'll try to look into this once I sorted out other Viewer bugs.
Tom
Patrick Godeau schrieb:
> Tom Schindl a écrit :
>> I'm afraid there aren't any. You need to create them your self by making
>> screenshots.
>
> So, I must make scheenshots of checked/unchecked boxes for each
> platform, and test the OS at runtime to display the correct image?
>
> This is not what I expected for multiplatform "Write Once, Run
> Everywhere" :-(
>
> Is there really no better alternative?
>