Page 1 of 1

Double Strikethrough

Posted: Tue Jul 21, 2009 4:09 pm
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

Posted: Wed Jul 22, 2009 8:59 am
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.

Posted: Wed Jul 22, 2009 10:02 am
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

Posted: Wed Jul 22, 2009 2:00 pm
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)