Topic: Scroll two windows in sync (1 of 2), Read 128 times
Conf: VEDIT Suggestions
From: Deleted User
Date: Friday, July 16, 1999 03:40 PM

If someone has already posted this elsewhere, my apologies.

One feature I saw somewhere (MKS diff, I think) is the ability to have two windows open and tiled vertically, which could be scrolled together. In other words, when I scroll one window, the other scrolls with it. This is really handy for comparing two versions of code, for example.

 


Topic: Re: Scroll two windows in sync (2 of 2), Read 145 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Friday, July 16, 1999 03:49 PM

The KEY-MAC.LIB file contains this macro which lets you page
up/down two window in sync:

**********
Scroll Up/Down (Page Up/Down) simultaneously in two windows.
**********

When there are exactly two windows, perform a [PAGE UP] and [PAGE DOWN],
respectively, in both windows.
(The 2nd window can display another file or the same file.)

[VISUAL EXIT]
if (Win_Total==2) { #103=Win_Num Win_Switch(Win_Next,ATTACH)
Do_Visual("\PU\") Update() Win_Switch(#103,ATTACH) Do_Visual("\PU\")
} else { ) }

[VISUAL EXIT]
if (Win_Total==2) { #103=Win_Num Win_Switch(Win_Next,ATTACH)
Do_Visual("\PD\") Update() Win_Switch(#103,ATTACH) Do_Visual("\PD\")
} else { ) }

Currently, two windows displaying one file can be synchronized, but not
two windows displaying two different files.