Menu

#36 patch SynEdit for MBCS again

open
None
5
2007-08-29
2007-06-10
vanilla610
No

I got 1 more different problems.

MBCS chars is drawn at the gutter area when vertial-scrolling like attached image.

the patch for this is like the following

Line 2839 at SynEdit.pas
fTextDrawer.ExtTextOut(nX, rcToken.Top, ETOOptions, rcToken, pszText, nCharsToPaint);
-->
just clip
TempRect := rcToken;
TempRect.Left := Max(TempRect.Left, aClip.Left);
fTextDrawer.ExtTextOut(nX, rcToken.Top, ETOOptions or ETO_CLIPPED, TempRect, pszText, nCharsToPaint);

Discussion

  • vanilla610

    vanilla610 - 2007-06-10
     
  • vanilla610

    vanilla610 - 2007-07-19

    Logged In: YES
    user_id=1383550
    Originator: YES

    I've noticed the way i told isnt good.

    the following one is better

    Line 3417 at SynEdit.pas
    PaintLines;
    -->
    if fGutter.Visible then
    ExcludeClipRect(Canvas.Handle, 0, 0, fGutterWidth + 2, ClientHeight);
    PaintLines;

    File Added: SynEditPatch.zip

     
  • vanilla610

    vanilla610 - 2007-07-19
     
  • Flávio Etrusco

    Flávio Etrusco - 2007-08-29
    • assigned_to: nobody --> etrusco
     

Log in to post a comment.