[comp.windows.open-look] matched scrolling windows

quasar@krazykat.ctt.bellcore.com (Laurence R. Brothers) (12/11/90)

The answer to this involves interposing on the scrollbar SCROLL_REQUEST events
to one scrollbar for one window to "manually" scroll the second window.

Alternatively, you can have just one window, with line numbers, and interpose
on the mouse events (don't let them through if calculations on the event's
x and y coordinates tell you that the line numbers will get selected.

You can either size one window so it's scrollbar goes off the end of the
frame, or you can fake a scrolling window by providing your own repaint
procedure
to a window exactly as large as it's overlying view. (Your line number window
could be a canvas, say, and you would provide your own repaint proc).

	         Laurence R. Brothers (quasar@bellcore.com)
      Bellcore -- Computer Technology Transfer -- Knowledge-Based Systems
        "Like dancing oil on a madman's face, reason tends to fly away"