Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Semi-OT: Non-Specific Question for Developers

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Semi-OT: Non-Specific Question for Developers Page: [1]
Login
Message << Older Topic   Newer Topic >>
Semi-OT: Non-Specific Question for Developers - 3/22/2014 12:02:10 AM   
CaptDave

 

Posts: 659
Joined: 6/21/2002
From: Federal Way, WA
Status: offline
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.
Post #: 1
RE: Semi-OT: Non-Specific Question for Developers - 3/22/2014 12:21:31 AM   
wdolson

 

Posts: 10398
Joined: 6/28/2006
From: Near Portland, OR
Status: offline
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

_____________________________

WitP AE - Test team lead, programmer

(in reply to CaptDave)
Post #: 2
RE: Semi-OT: Non-Specific Question for Developers - 3/25/2014 10:41:13 PM   
CaptDave

 

Posts: 659
Joined: 6/21/2002
From: Federal Way, WA
Status: offline
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.

(in reply to wdolson)
Post #: 3
RE: Semi-OT: Non-Specific Question for Developers - 3/25/2014 11:00:45 PM   
wdolson

 

Posts: 10398
Joined: 6/28/2006
From: Near Portland, OR
Status: offline
Sticky mice can cause all sorts of frustrating things.

Bill

_____________________________

WitP AE - Test team lead, programmer

(in reply to CaptDave)
Post #: 4
RE: Semi-OT: Non-Specific Question for Developers - 3/28/2014 8:14:46 PM   
CaptDave

 

Posts: 659
Joined: 6/21/2002
From: Federal Way, WA
Status: offline
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.)

(in reply to wdolson)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> War in the Pacific: Admiral's Edition >> Semi-OT: Non-Specific Question for Developers Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.703