View Issue Details

IDProjectCategoryView StatusLast Update
0004381JEDI VCL00 JVCL Componentspublic2008-06-28 08:05
ReporternestorAssigned ToAHUser 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version3.34 
Summary0004381: Tjvdbgrid scroll using wheel mouse
DescriptionJvdbgrid scroll behaviour is wrong when wheel mouse is used.
There is no scroll problem when the “alternaterowcolor” property is set to another color than “clNone”.

TagsNo tags attached.

Activities

nestor

2008-06-24 14:52

reporter   ~0014348

This problem occures since revision 11798

nestor

2008-06-24 18:58

reporter   ~0014349

scroll problems can be fixed by removing the scroll switch sentences from this procedure.
procedure TJvDBGrid.MouseWheelHandler(var Message: TMessage);
var
  LastRow: Integer;
begin
// DisableScroll;
// try
    LastRow := Row;
    inherited MouseWheelHandler(Message);
    if (Row <> LastRow) and (DataLink <> nil) and DataLink.Active then
      InvalidateCell(IndicatorOffset - 1, LastRow);
// finally
// EnableScroll;
// end;
end;

obones

2008-06-25 01:25

administrator   ~0014350

Please provide the zipped sources of a sample application showing this.

2008-06-26 16:47

 

jvdbgrid.zip (8,130 bytes)

AHUser

2008-06-28 08:05

developer   ~0014354

I hope this change doesn't break any older bug fix. I've added the DisableScroll/EnableScroll in my last bug fix because I ran into a bug if they were missing. Unfortunately I don't remember what this bug was and if the actual cause for the problem was fixed in a newer revision than the one I have at work.

Issue History

Date Modified Username Field Change
2008-06-23 16:54 nestor New Issue
2008-06-24 14:52 nestor Note Added: 0014348
2008-06-24 18:59 nestor Note Added: 0014349
2008-06-25 01:25 obones Note Added: 0014350
2008-06-25 01:25 obones Status new => feedback
2008-06-26 16:47 nestor File Added: jvdbgrid.zip
2008-06-28 08:05 AHUser Status feedback => resolved
2008-06-28 08:05 AHUser Fixed in Version => Daily / SVN
2008-06-28 08:05 AHUser Resolution open => fixed
2008-06-28 08:05 AHUser Assigned To => AHUser
2008-06-28 08:05 AHUser Note Added: 0014354