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:
parent
fc05b9395e
commit
67b5df031c
File diff suppressed because it is too large
Load Diff
@ -619,8 +619,7 @@ begin
|
||||
AItem.LabelRect := R;
|
||||
|
||||
bkMode := SetBkMode(Canvas.Handle, TRANSPARENT);
|
||||
Canvas.TextOut(R.Left, (R.Top + R.Bottom - AHeight) div 2, s);
|
||||
// AHeight := DrawText(Canvas.Handle, PChar(s), Length(s), R, DT_LEFT or DT_VCENTER);
|
||||
DrawText(Canvas.Handle, PChar(s), Length(s), R, DT_LEFT or DT_VCENTER);
|
||||
SetBkMode(Canvas.Handle, bkMode);
|
||||
|
||||
AHeight := HeightOf(R);
|
||||
|
Loading…
Reference in New Issue
Block a user