Jump to content


Photo

Setting autoscroll to false does not work.

autoscroll bug

  • Please log in to reply
5 replies to this topic

#1 nosx

nosx
  • Members
  • 11 posts

Posted 05 September 2014 - 06:26 PM

In all of my grids I have autoscrolling set to FALSE yet the icon still show up when I click on my middle mouse button (the wheel button) which starts autoscrolling mode. How do I completly turn off this behaviour if setting autoscroll to false does not work ?

Attached File  Untitled.png   34.51KB   4 downloads

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 07 September 2014 - 01:15 AM

Hi,

This is not controlled via this property. Didn't know if I ever needed it :) Can you please suggest me how to name new property for controlling this?

Maybe GravityScroll : Boolean or something more better.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 nosx

nosx
  • Members
  • 11 posts

Posted 07 September 2014 - 10:23 PM

In most applications it called autocroll but as long as I can disable it then you can name it whatever you think is appropriate. All I need to know is how do I disable it now because I really need to use the middle mouse button for another reason than scrolling. I don't care if I have to edit the sourcecode manually I just need it disabled so how do I do it. I am desperate.

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 09 September 2014 - 06:41 PM

Hi,

Try to turn off rsRoll flag in ScrollStyle property.

I hope that it will work for you.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 nosx

nosx
  • Members
  • 11 posts

Posted 09 September 2014 - 08:31 PM

I have NextGrid version 5.9.25 and there does not appear to be any property called ScrollStyle. Is this property in one of the sourcefiles because It does not appear to be a published property that I could find anyway.

Update: I did find in NxScrollControl.pas around Line #968 this code.

FScrollStyle := [rsRoll];

which I changed to

FScrollStyle := FScrollStyle - [rsRoll];

and the grid no longer shows the "gravity scroller" when I middle mouse click, but I am sure this will disable this for other controls as well in the Suite so it would be nice if in the next release there was a dedicated property for this for every control that uses this feature like you discussed earlier.

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 10 September 2014 - 03:55 PM

Hi,

Sure, I will add this as property from next version.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.





Also tagged with one or more of these keywords: autoscroll, bug

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users