You've already forked lazarus-ccr
TvPlanIt: Fix TVpNavBar not painting the first button text if IconSize is small. Issue #39055
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8904 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@ -619,8 +619,7 @@ begin
|
|||||||
AItem.LabelRect := R;
|
AItem.LabelRect := R;
|
||||||
|
|
||||||
bkMode := SetBkMode(Canvas.Handle, TRANSPARENT);
|
bkMode := SetBkMode(Canvas.Handle, TRANSPARENT);
|
||||||
Canvas.TextOut(R.Left, (R.Top + R.Bottom - AHeight) div 2, s);
|
DrawText(Canvas.Handle, PChar(s), Length(s), R, DT_LEFT or DT_VCENTER);
|
||||||
// AHeight := DrawText(Canvas.Handle, PChar(s), Length(s), R, DT_LEFT or DT_VCENTER);
|
|
||||||
SetBkMode(Canvas.Handle, bkMode);
|
SetBkMode(Canvas.Handle, bkMode);
|
||||||
|
|
||||||
AHeight := HeightOf(R);
|
AHeight := HeightOf(R);
|
||||||
|
Reference in New Issue
Block a user