acDBGrid.pas TNTControls

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #33785
    muratk
    Participant

    I forgot to mention You have to change in
    ColumnSkinPaint Procedure

    from

    If cIndex >= 0 Then
    Begin
    acWriteTextEx(TempBmp.Canvas, PChar(Columns[cIndex].Title.Caption), True, TextRc,
    DrawTextBiDiModeFlags(DT_EXPANDTABS Or DT_WORDBREAK Or GetStringFlags(Self, Columns[cIndex].Alignment)),
    si, (State <> 0), SkinData.SkinManager);
    end

    to

    If cIndex >= 0 Then
    Begin
    {$IFDEF TNTUNICODE}
    acWriteTextEx(TempBmp.Canvas, PWideChar(Columns[cIndex].Title.Caption), True, TextRc,
    DrawTextBiDiModeFlags(DT_EXPANDTABS Or DT_WORDBREAK Or GetStringFlags(Self, Columns[cIndex].Alignment)),
    si, (State <> 0), SkinData.SkinManager);
    {$ELSE}
    acWriteTextEx(TempBmp.Canvas, PChar(Columns[cIndex].Title.Caption), True, TextRc,
    DrawTextBiDiModeFlags(DT_EXPANDTABS Or DT_WORDBREAK Or GetStringFlags(Self, Columns[cIndex].Alignment)),
    si, (State <> 0), SkinData.SkinManager);
    {$ENDIF}
    End

    #42745
    Support
    Keymaster

    Thank you very much, i'll check it

    Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.