Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I am very happy with the whole site and would like to extend my compliments to all of you who work to make it one of the most useful sites (If not THE Most Useful) ...and the easiest to navigate..."

Geography

Where in the world do Tek-Tips members come from?

Unusual behaviour - grid not scrolling with mouse wheel

AlastairP (TechnicalUser)
4 May 12 21:35
I have an unusual problem with my grids.

When the grid has focus, the mouse wheel will scroll the grid up or down - sometimes, and sometimes not.
I check this by clicking on a row and then trying again - no luck.
After a few up and down movements of the mouse it will eventually start moving.
Then sometimes it will just work straight away.
I disabled any code in the grid to eliminate that possiblity, and it still showed the same behaviour.
I am using a cursor adaptor for the record source.

Update:
I just noticed another thing. The issue is as follows.
Click on a row and leave mouse in row/cell that I clicked on.
No Scrolling
I then move mouse out of the cell and presto - grid scrolls

Is this normal behaviour?


 
OlafDoschke (Programmer)
5 May 12 4:33
Well, I can reproduce that behaviour.

So the rule seems to be, the mouse wheel will scroll the control you hover, and if the column textbox has focus and you hover over it, that means scrolling the textbox, but as that has no scrolling, nothing scrolls, also not the parent grid.

So, if you know it you can simply move the mouse off the current control and scroll.

With EVENTTRACKING I see the text1.mousewheel event is triggered.

Bye, Olaf.

 
danfreeman (Programmer)
5 May 12 14:39
Yeah, we'd probably get all kinds of complaints if the scroll wheel was ignored in a multi-line editbox inside a grid, for example.

I've actually seen this behavior in other apps, notably browsers. I've inadvertently changed the selection in a dropdown list when I meant to scroll the page.

It's one of those things that makes sense intellectually, once you analyze the behavior, but on first glance maybe not so much. <shrug> (Sort of like REPLACE while at EOF(). <g>)
AlastairP (TechnicalUser)
5 May 12 23:10
Thanks, that makes sense


Regards

Alastair
 
OlafDoschke (Programmer)
6 May 12 3:58
what you could do is THIS.PARENT.PARENT.DoScroll(?) FROM within the MouseWheel event of the textbox. I already treib BINDEVENT, but it seesm one of the events Bindevent does not forward an event the way it's needed to execute the default bahviour.

Bye, Olaf.

 

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close