WPCubed Product Support

Add option to specify pen with for misspelled words?

In case others might want a curly line that looks like the one being used in Thunderbird email clients, you can make the following changes in WPRTEPaint:

    //curly_trad: array[0..11] of Integer = (0, -1, -1,  0,  0, -1, -1,  0,  0, -1, -1,  0);
    curly_trad:   array[0..11] of Integer = (3,  1,  0,  0,  1,  3,  3,  1,  0,  0,  1,  3);
...
      DestCanvas.Pen.Width := px2; // Changed Width from 0 to px2
...
      if (wpTraditionalMisspellMarkers in ViewOptions) then // Added conditional since start positions differ
        DestCanvas.MoveTo(LastLineSpellX, LastLineY + px2 + curly_trad[loop] * px1)
      else
        DestCanvas.MoveTo(LastLineSpellX, LastLineY + px2 + curly[loop] * px1);
#5 ♥ 0
3.6k Views 2 users read 1 min

Hmmm... I don't see that global variable in 9.2. Did you mean to say 9.3.x?

#3 ♥ 0
wpsupport

I put in a global variable wpDrawCurlyLinePixelWidth in 5.3.x

#2 ♥ 0

Currently the non-traditional curly line under misspelled words does not stand out very well in some circumstances (customer feedback). It appears to be a 1px line. Can an option be added to increase it to 2px. I changed the source in WPRTEPaint's DrawCurly procedure from: DestCanvas.Pen.Width := 0; to DestCanvas.Pen.Width := px2; which really makes it stand out nicely for us.

#1 ♥ 0