Project JEDI - Issue Tracker
Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002942 [JEDI VCL] 00 JVCL Components major always 2005-05-09 22:15 2005-08-09 07:21
Reporter anonymous View Status public  
Assigned To obones
Priority normal Resolution fixed  
Status resolved   Product Version 3.00
Summary 0002942: JvCustomItemViewer doesn't draw scroll bars correctly with xp theme enabled
Description The 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;
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0007740)
obones (administrator)
2005-08-09 07:21

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


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker