Jump to content


Photo

NextGrid horizontal scrollbar problem


  • Please log in to reply
1 reply to this topic

#1 laurence

laurence
  • Members
  • 23 posts

Posted 29 October 2013 - 12:06 AM

I'm using TNextGrid v5.9.5 with 3 columns, one column is set to AutoSize.

This behaviour only happens when the grid has less rows than the number of rows i.e. no vertical scrollbar.
If the user selects a cell in the grid and then scrolls the mouse wheel, a horizontal scrollbar appears and the grid scrolls horizontally a few pixels.

This also only happens when MouseWheelEnabled = True, but if False then the user can't use the mouse wheel to scroll vertically.

I saw something regarding this being fixed in the 5.9 release, but it appears to have come back in the 5.9.5 release.

Regards,
Laurence Bevan

#2 Tulip913

Tulip913
  • Members
  • 13 posts

Posted 30 October 2014 - 01:54 PM

I also had this nasty behavior but fixed it by editing NxScrollControl.pas:

procedure TNxScrollControl.WMHScroll(var Message: TWMHScroll);
var
nScrollPos: integer; // chg-am
begin
inherited;
if not FHorzScrollBar.Visible then Exit;

.
.
.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users