Double Strikethrough

General TRichView support forum. Please post your questions here
Post Reply
cetinturk
Posts: 2
Joined: Fri Mar 27, 2009 12:04 pm

Double Strikethrough

Post by cetinturk »

Hi,

I do need show double strikethrough. When I checked to Canvas i can see [fsStrikeOut] in Canvas.Font.Style for normal Strikethough but if I changed to Double strikethrough it is []

How can I do in OnDrawStyleText event or different place?

Thanks,

Ali
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Since this is not a standard option, the only way is to draw it yourself.
You can draw a double line in OnDrawStyleText, leave DoDefault parameter = True, but exlude fsStrikeout from Canvas.Font.Style to prevent the default drawing of a single line.
cetinturk
Posts: 2
Joined: Fri Mar 27, 2009 12:04 pm

Post by cetinturk »

Hi Sergey,

Thanks for your answer, DoDefault is already True, but I don't have any information for Double Strikethrough in Canvas. How I can understand this is has Double strikethrough? If possible could you give me sample of code for this.

Thanks,

Ali
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

This information must be stored in a text style (and it is passed as a parameter of this event).
The simplest way is using unused properties and threat them as dbl strikeout. For example you can use custom protection options (see Protection property)
Post Reply