Semi-OT: Non-Specific Question for Developers (Full Version)

All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition



Message


CaptDave -> Semi-OT: Non-Specific Question for Developers (3/22/2014 12:02:10 AM)

In all versions of WitP, when you click on a scroll bar the position jumps to where it was clicked, rather than moving one page at a time. I, and many others on another forum, have noticed an increasing number of applications where clicking in a scroll bar results in a continuous scroll until it reaches the end or the scroll bar is clicked again. If anyone can answer without giving away the deep, dark secrets of the code, might these two "features" be related?

Alternatively, does anyone know what causes the continuous scroll? It's something we all find annoying, and would like to figure out how to eliminate it in the open source program we're discussing in that other forum.

Personally, I'm guessing it's related to code written to accommodate tablets and phones, but the last major language I programmed in is FORTRAN so it's just a guess.




wdolson -> RE: Semi-OT: Non-Specific Question for Developers (3/22/2014 12:21:31 AM)

The continuous scroll is part of the standard Windows control. It's been that way since Windows 95 if I remember correctly.

To do the jump scroll like WitP does, you have to write your own handler for the scroll function. When we inherited the code for WitP, this was essentially already there and we didn't mess with it.

I program in C and C++ (not .NET). Other than what is in the WitP code, I have never looked at what it would take to do a jump scroll (I never looked that closely at the WitP code for this because we were focused on other things), but essentially you need to catch the Windows message for scrolling for the window you're dealing with. I believe it's WM_SCROLL. Then you need to write your own handler for the message.

Bill




CaptDave -> RE: Semi-OT: Non-Specific Question for Developers (3/25/2014 10:41:13 PM)

Thanks, Bill, though I think I might have been unclear. I was referring to a single click inducing a continuous scroll; normal behavior, like in these forums, is that a single click scrolls down one page, while a click and hold of course starts a continuous scroll. What I've seen -- and this is mostly on Explorer-equivalent screens for download locations -- is that a single click causes the continuous scroll.

The specific problem we were discussing in the other forum turned out to be a driver issue, as it happens. Some people also had trouble with gunk in their mice and trackpads, so there was no one answer.




wdolson -> RE: Semi-OT: Non-Specific Question for Developers (3/25/2014 11:00:45 PM)

Sticky mice can cause all sorts of frustrating things.

Bill




CaptDave -> RE: Semi-OT: Non-Specific Question for Developers (3/28/2014 8:14:46 PM)

Yep. Not my particular problem, in this case, but seemed to be the issue for everyone else. (My laptop has a trackpad, but it's not a separate rubberized pad -- it's molded into the shell and thus sealed.)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.71875