View Issue Details

IDProjectCategoryView StatusLast Update
0003801JEDI VCL00 JVCL Componentspublic2006-07-28 13:43
ReportergallahermikeAssigned Toobones 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.20 
Target VersionFixed in Version3.30 
Summary0003801: JvNavigationPane ignores the font set in TJvNavPaneStyleManager.Fonts.HeaderFont
DescriptionWhen using TJvNavPaneStyleManager.Fonts.HeaderFont to control the headers shown in a TJvNavigationPane the TJvNavPanelHeader.Font is never set to the TJvNavPaneStyleManager.Fonts.HeaderFont.

The problem is in the TJvNavPanelHeader.SetStyleManager method. While colors seem to be assigned the font is not. The following code seems to fix the problem.

procedure TJvNavPanelHeader.SetStyleManager(const Value: TJvNavPaneStyleManager);
begin
  if FStyleManager <> Value then
  begin
    ParentStyleManager := False;
    if FStyleManager <> nil then
      FStyleManager.UnregisterChanges(FStyleLink);
    FStyleManager := Value;
    if FStyleManager <> nil then
    begin
      FStyleManager.RegisterChanges(FStyleLink);
      FStyleManager.FreeNotification(Self);
      FColorFrom := FStyleManager.Colors.HeaderColorFrom;
      FColorTo := FStyleManager.Colors.HeaderColorTo;
      //Assign the font also.
      Font.Assign(FStyleManager.Fonts.HeaderFont);
      Invalidate;
    end;
    InternalStyleManagerChanged(Self, Value);
  end;
end;
TagsNo tags attached.

Activities

obones

2006-07-28 13:43

administrator   ~0009877

This is now fixed in SVN and has also been fixed for TJvCustomNavigationPane and TJvNavPanelDivider.

Issue History

Date Modified Username Field Change
2006-07-08 21:32 gallahermike New Issue
2006-07-28 13:43 obones Status new => resolved
2006-07-28 13:43 obones Fixed in Version => Daily / SVN
2006-07-28 13:43 obones Resolution open => fixed
2006-07-28 13:43 obones Assigned To => obones
2006-07-28 13:43 obones Note Added: 0009877