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:
wp_xxyyzz 2023-07-29 18:01:02 +00:00
parent fc05b9395e
commit 67b5df031c
2 changed files with 426 additions and 1336 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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);