View Issue Details

IDProjectCategoryView StatusLast Update
0001563JEDI VCL00 JVCL Componentspublic2004-04-03 01:12
ReporteranonymousAssigned Touser72 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0001563: JvScrollMax: Button headers are wrongfully aligned
Descriptionjgpq are characters that will have their bottom part touching the bottom of the button object. The text is not centered as it should be.

Here is the fix:

procedure TJvBandBtn.FontChanged;
begin
  inherited FontChanged;
  if Parent <> nil then
    with Parent as TJvScrollMaxBand do
    begin
      FParentButtonFont := False;
      Canvas.Font := Self.Font;
      // (rom) please check this change
      //FButton.Height := Canvas.TextHeight('W') + 4;
      FButton.Height := CanvasMaxTextHeight(Canvas) + 2;

Change last line here to:

FButton.Height := CanvasMaxTextHeight(Canvas) + 4;
TagsNo tags attached.

Activities

user72

2004-04-03 01:12

  ~0003623

Fixed in CVS. Thanks.

Issue History

Date Modified Username Field Change
2004-04-02 14:08 anonymous New Issue
2004-04-03 01:12 user72 Status new => resolved
2004-04-03 01:12 user72 Resolution open => fixed
2004-04-03 01:12 user72 Assigned To => user72
2004-04-03 01:12 user72 Note Added: 0003623