MouseWheel Scrolling

TeeGrid VCL / FMX for Embarcadero RAD Studio, Delphi, C++ Builder and Lazarus Free Pascal.
Post Reply
brent
Newbie
Newbie
Posts: 1
Joined: Thu Jun 01, 2017 12:00 am

MouseWheel Scrolling

Post by brent » Fri Jun 02, 2017 4:30 pm

I've got the TeeGrid connected to a DataSource. The MouseWheel will not work to scroll. I've tried setting the TeeGrid.Scrolling.Mode to different things.

Also, using the arrow keys will move the indicator position but scrolling doesn't happen.

Thanks
Brent

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: MouseWheel Scrolling

Post by Yeray » Thu Jun 08, 2017 1:39 pm

Hi Brent,

This was fixed with #1850 and #1851.
The next maintenance release will include the fix.

The fix is quite simple, if you want to implement in your sources. It consists on adding an override of the DataSetScrolled method at Tee.GridData.DB.pas:

Code: Select all

  TVirtualDataLink=class(TDataLink)
  //...
  protected
  //...
    Procedure DataSetScrolled (Distance :Integer); Override;
//...
Procedure TVirtualDataLink.DataSetScrolled (Distance :Integer);
Begin
  RecordChanged(Nil);
End;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply