View Issue Details

IDProjectCategoryView StatusLast Update
0037713LazarusLCLpublic2020-09-09 11:44
Reportergucao Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
PlatformwindowsOSwin10 
Summary0037713: dbgrid afterscrollbar can't call when drag the scrollbar
Descriptionwhen Scroll the middle mouse button the afterscroll will be call
but when i move the mouse to the scrollbar's slide block and press down the left mouse button, then drag ,the afterscroll not work.
on the lcl/dbgrids.pas TCustomDBGrid.UpdateScrollbarRange i add:
    if Assigned(FDataLink.DataSet.AfterScroll) then
      FDataLink.DataSet.AfterScroll(FDataLink.DataSet);
the afterscroll is works both ways
i need the two work ways,please help me add the code.thinks..
Tagsdbgrid, memdataset
Fixed in Revision
LazTarget
Widgetset
Attached Files

Activities

gucao

2020-09-06 20:12

reporter  

test demo.rar (128,606 bytes)

Bart Broersma

2020-09-06 21:34

developer   ~0125410

Please move to Lazarus.

gucao

2020-09-07 06:30

reporter   ~0125412

e```I found im errors, maybe the problem was caused by memdataset.i will retest

gucao

2020-09-07 10:43

reporter   ~0125417

i retest
This problem only appeared in Tmemdataset.
when scroll will call SetRecNo.
TCustomBufDataset.SetRecNo call GotoBookmark ,the GotoBookmark call DoAfterScroll.
TMemDataset.SetRecNo didn't do that.
mem.png (15,219 bytes)   
mem.png (15,219 bytes)   
buf.png (26,821 bytes)   
buf.png (26,821 bytes)   
dataset.png (17,342 bytes)   
dataset.png (17,342 bytes)   

gucao

2020-09-09 11:43

reporter   ~0125447

i post a new demo
MemBufDataset-newdemo.rar (129,209 bytes)

Issue History

Date Modified Username Field Change
2020-09-06 20:12 gucao New Issue
2020-09-06 20:12 gucao File Added: test demo.rar
2020-09-06 21:34 Bart Broersma Note Added: 0125410
2020-09-06 21:35 Jonas Maebe Project FPC => Lazarus
2020-09-07 06:30 gucao Note Added: 0125412
2020-09-07 10:43 gucao Note Added: 0125417
2020-09-07 10:43 gucao File Added: mem.png
2020-09-07 10:43 gucao File Added: buf.png
2020-09-07 10:43 gucao File Added: dataset.png
2020-09-09 11:43 gucao Note Added: 0125447
2020-09-09 11:43 gucao File Added: MemBufDataset-newdemo.rar
2020-09-09 11:44 gucao Tag Attached: dbgrid
2020-09-09 11:44 gucao Tag Attached: memdataset