You've already forked lazarus-ccr
RxDBGrid - fix draw themed vertical collumn caption
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@2512 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1643,7 +1643,7 @@ begin
|
|||||||
begin
|
begin
|
||||||
if rxTit.Orientation in [toVertical270, toVertical90] then
|
if rxTit.Orientation in [toVertical270, toVertical90] then
|
||||||
H := Max((tmpCanvas.TextWidth(Columns[i].Title.Caption) +
|
H := Max((tmpCanvas.TextWidth(Columns[i].Title.Caption) +
|
||||||
tmpCanvas.TextWidth('W')) div DefaultRowHeight, H)
|
tmpCanvas.TextWidth('W')*2) div DefaultRowHeight, H)
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
rxColNext := nil;
|
rxColNext := nil;
|
||||||
|
@ -222,8 +222,16 @@ var
|
|||||||
L:integer;
|
L:integer;
|
||||||
begin
|
begin
|
||||||
L:=Canvas.Font.Orientation;
|
L:=Canvas.Font.Orientation;
|
||||||
|
|
||||||
|
SetBkMode(Canvas.Handle, TRANSPARENT);
|
||||||
|
|
||||||
Canvas.Font.Orientation:=RotDegree * 10;
|
Canvas.Font.Orientation:=RotDegree * 10;
|
||||||
Canvas.TextOut(X, Y, St);
|
Canvas.TextOut(X, Y, St);
|
||||||
|
|
||||||
|
{ DrawText(ACanvas.Handle, PChar(Text), Length(Text), DrawRect,
|
||||||
|
ALIGN_FLAGS_HEADER[Alignment] or DT_WORDBREAK
|
||||||
|
);}
|
||||||
|
|
||||||
Canvas.Font.Orientation:=L;
|
Canvas.Font.Orientation:=L;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user