Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Strike through font?
Strike through font? [message #69580] Wed, 09 January 2008 23:18 Go to next message
Eclipse UserFriend
Originally posted by: juergen.schlierf.eu

Hi,
I need a strike through font (for TableViewer). Does anybody have an idea how to create it?

Regards,
Jürgen
Re: Strike through font? [message #71176 is a reply to message #69580] Wed, 23 January 2008 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Jürgen,

I think SWT only support normal, bold, italic, and bold italic, so
likely this is not supported (unless there is a special font face/family
where "normal" is strike through).


Jürgen Schlierf wrote:
> Hi,
> I need a strike through font (for TableViewer). Does anybody have an
> idea how to create it?
>
> Regards,
> Jürgen
Re: Strike through font? [message #71669 is a reply to message #71176] Thu, 24 January 2008 21:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jkrause.innoopract.com

Hi Jürgen,

As Ed pointed out the is no API available for this, as RWT is a subset
of SWT. In SWT you would need to use GC, which we do not support. In
HTML you could set either a style or mark the text with <s>.

There are several ways to achieve striking, none is simple :-(

But if you let us know a little more about your use case we will try to
help you.

In general you could use the same workaround that you would be using
with SWT, overlaying the text with a graphic. But instead of drawing a
line with GC you could try to either take a composite with a border or
an image.

Jochen

Ed Merks wrote:
> Jürgen,
>
> I think SWT only support normal, bold, italic, and bold italic, so
> likely this is not supported (unless there is a special font face/family
> where "normal" is strike through).
>
>
> Jürgen Schlierf wrote:
>> Hi,
>> I need a strike through font (for TableViewer). Does anybody have an
>> idea how to create it?
>>
>> Regards,
>> Jürgen
Re: Strike through font? [message #71761 is a reply to message #71669] Fri, 25 January 2008 22:16 Go to previous message
Eclipse UserFriend
Originally posted by: juergen.schlierf.eu

Hi Jochen,

I want to use it in a TableViewer for a simple webamil application. All messages which are flaged as deleted should be striked out (subject, from, size etc).

To use an overlaying composite or border is an interesting idea. I guess it won't be easy to handle this for a Table or TableItems. My LabelProvider implements ITableLabelProvider, ITableFontProvider and ITableColorProvider.

Any help or hint would be appreciated.


Thanks in advance,
Jürgen



Jochen Krause schrieb:
> Hi Jürgen,
>
> As Ed pointed out the is no API available for this, as RWT is a subset
> of SWT. In SWT you would need to use GC, which we do not support. In
> HTML you could set either a style or mark the text with <s>.
>
> There are several ways to achieve striking, none is simple :-(
>
> But if you let us know a little more about your use case we will try to
> help you.
>
> In general you could use the same workaround that you would be using
> with SWT, overlaying the text with a graphic. But instead of drawing a
> line with GC you could try to either take a composite with a border or
> an image.
>
> Jochen
>
> Ed Merks wrote:
>> Jürgen,
>>
>> I think SWT only support normal, bold, italic, and bold italic, so
>> likely this is not supported (unless there is a special font
>> face/family where "normal" is strike through).
>>
>>
>> Jürgen Schlierf wrote:
>>> Hi,
>>> I need a strike through font (for TableViewer). Does anybody have an
>>> idea how to create it?
>>>
>>> Regards,
>>> Jürgen
Previous Topic:communication from javascript (executed inside Browser widget) to RAP
Next Topic:RAP update site down?
Goto Forum:
  


Current Time: Fri Apr 26 05:46:12 GMT 2024

Powered by FUDForum. Page generated in 0.03221 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top