View Issue Details

IDProjectCategoryView StatusLast Update
0002942JEDI VCL00 JVCL Componentspublic2005-08-09 07:21
ReporteranonymousAssigned Toobones 
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.00 
Target VersionFixed in Version3.10 
Summary0002942: JvCustomItemViewer doesn't draw scroll bars correctly with xp theme enabled
DescriptionThe WMNCPaint method in JvCustomItemViewer.pas is

procedure TJvCustomItemViewer.WMNCPaint(var Messages: TWMNCPaint);
begin
  {$IFDEF JVCLThemesEnabled}
  if ThemeServices.ThemesEnabled then
    ThemeServices.PaintBorder(TWinControl(Self), False)
  else
  {$ENDIF JVCLThemesEnabled}
    inherited;
end;

While theme is enabled, it handles WM_NCPAINT message, so that windows can not respond to this message and update scroll bars.

I think the code should be change to:

procedure TJvCustomItemViewer.WMNCPaint(var Messages: TWMNCPaint);
begin
  inherited;
  {$IFDEF JVCLThemesEnabled}
  if ThemeServices.ThemesEnabled then
    ThemeServices.PaintBorder(TWinControl(Self), False);
  {$ENDIF JVCLThemesEnabled}
end;
TagsNo tags attached.

Activities

obones

2005-08-09 07:21

administrator   ~0007740

This is now in CVS.

Issue History

Date Modified Username Field Change
2005-05-09 22:15 anonymous New Issue
2005-08-09 07:21 obones Status new => resolved
2005-08-09 07:21 obones Resolution open => fixed
2005-08-09 07:21 obones Assigned To => obones
2005-08-09 07:21 obones Note Added: 0007740