Intellimouse panning (improved Auto-Panning Windows)

This article improves on the code submitted by Umut Alev, Auto-Panning Windows.

Ever since I saw the use of this Intellimouse control in the Infoviewer of DevStudio and later in Microsofts Internet Explorer, I've wanted an improved version that didn't strain the eyes and had much finer increments than 1-pixel, 2-pixels etc. Eudora Pro can use Microsofts viewer and since I read a number of newsletters, the scrolling is either too slow or too fast. I also wanted the panning to be simultanoeusly possible both vertically and horizontally.

Improvements made

  • Scroll simultaneously in horizontal and vertical directions. I added code to Umuts class to handle scrolling both vertically and horizontally at the same time (you can still have it the old way, it's a BOOL switch). The cursor does not change in this case, it remains the pointer in all four directions.
  • Scroll with much finer resolution (much smoother) by time and pixel dependant scrolling.

Download source - 5KB

Download the two source files mfxWhlPan.h and mfxWhlPan.c in this ZIP file. You must download Umats demo project - 38KB or his source - 4.9KB and replace the two files.

Date Posted: 5/22/98
Posted by: Pat Laplante.



Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • It's not unusual for a company to use a variety of formal and informal file-sharing methods. Many methods are fraught with significant operational, financial, and legal risks in addition to other potentially negative business consequences. Strategic managed file transfer (MFT) software and services help connect the business "dots" between the various ad hoc and more systematic ways that files are moved. Read this white paper to learn how the right MFT solution, can bring order, structure, and, importantly, …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds