For the first two decades of Windows, the scroll bar control had just a few basic operations. (For expository purposes, let’s assume that the scroll bar is vertical.) There are five mouse targets: The arrows at the ends of the scroll bar scroll by a line. The regions between the thumb and the arrows scroll by a page. And the thumb itself lets you drag the scroll bar to a specific position.
Windows 7 Windows 2000 added a right-click menu to the scroll bar. This menu gave you four options that matched existing mouse operations, two operations that matched existing keyboard operations, and a new operation.
| Menu option | Mouse | Keyboard |
|---|---|---|
| Scroll Here | Drag thumb to position | |
| Top | Drag thumb to start | Home |
| Bottom | Drag thumb to end | End |
| Page Up | Click in upper gutter | PgUp |
| Page Down | Click in lower gutter | PgDn |
| Scroll Up | Click on up-arrow | ↑ |
| Scroll Down | Click on down-arrow | ↓ |
The interesting new one is “Scroll Here”: You can right-click directly on the spot you want to scroll to, and then pick “Scroll Here”. This is much more convenient if you want to scroll a long distance, since you don’t have to grab the scroll bar thumb and then drag it all the way to where you want to go. You can just focus on where you want to go and not where you are coming from.
I used this context menu a lot when I needed to jump long distances.
An even-more-hidden shortcut was added at the same time: Holding Shift while clicking on the scroll bar jumps the thumb directly to the spot where you clicked.
I didn’t know about this shortcut until recently. I had always used my trusty context menu.
Sadly, almost nobody uses Win32 scroll bars any more. Everybody uses frameworks that provide their own custom scroll bars.
Electron and other Web apps use the Chromium scroll bar, which doesn’t implement the context menu, but at least it does implement the Shift+click shortcut.
The WPF XAML framework appears to implement both the context menu Shift+click.
The WinUI XAML framework frustratingly has neither the context menu nor the Shift+click shortcut. (Though at least one person has requested it.)
The Qt framework has multiple customization points, so it’s really up to each app’s developer. You can enable context menus with SH_, you can enable “left-click to jump to a position” with SH_, and you can enable “middle-click to jump to a position” with SH_.
Great, so by the time I learn about a shortcut for scroll bars (Shift+click), the ecosystem has fragmented so much that I can’t even rely on it working.
Damn, I have used Windows for 30 years and just learned about the Shift+click… and the context menu*!
* I just tried it in Windows 11’s Windows Explorer. Does not work on Edge, though.
In case Raymond never gets around to approving my comment which got held for moderation because it dared contain a hyperlink:
hxxps://imgur.com/a/VlacnnC
Replace xx with tt.
> Great, so by the time I learn about a shortcut for scroll bars (Shift+click), the ecosystem has fragmented so much that I can’t even rely on it working.
Yeah, and that fragmentation is an entirely self-inflicted problem. Microsoft has been the one churning out GUI framework after GUI framework -- all of them half-baked and all of them eventually abandoned for the next shiny thing. Of course developers got sick of it and decided to just use...
this comment has been deleted.
(this is intended to be in reply to your later comment, rather than this one)
It seems a bit rich to be urging your respondent to trust the moderation process, when you started this thread by evading it because it hadn’t (so far) let your comment through.
As far as I know, Raymond is the only one moderating his own blog.
I trust that, if he finds either the comment still held for moderation because of the link or the one I allegedly made to "evade" moderation objectionable, he can remove one or both of them. On the other hand, it seems like both LB and you don't trust him and feel the urge to play his advocate.
LB indirectly accused me of violating the CoC by posting a link to a satirical image, and also implied that I didn't even read the CoC by pointing out where the...
That image violates the code of conduct, which is linked under the text box you typed the link into
If you are referring to section "Graphic violence and gore", do note that:
1. It explicitly mentions real-world violence as forbidden and carves exceptions for "newsworthy or important for educational or research purposes" -- nowhere does it say satire and cartoonish violence akin to what I posted is not acceptable (and I consider that image I prompted Gemini to make educational for Microsoft employees).
2. Moderation system couldn't have fetched the linked image to determine if it violates CoC as it would have to parse the page and work around imgur bot protections and then waste AI to "read" what's on it....
Have used Windows for over 2 decades and had no idea Shift+click in the scrollbar was a thing – thanks!