Viewing One Memory File Through Several Windows

Since the window holds the origin of the window in the memory file, you can open several windows on a memory file at once. To do this, (1) define several windows, (2) call sw_mf() and associate the same memory file with each window, and (3) set the memory file origin in each window to the area of the memory file that you initially want to see in the window.

In the following example, the memory file is only displayed in the windows, the user cannot scroll through the memory file.

...

...

sw_mf(mfp, wnp1);

sw_org(0, 0, wnp1);

sw_mf(mfp, wnp2);

sw_org(15, 0, wnp2);

sw_mf(mfp, wnp3);

sw_org(30, 0, wnp3);

wn_up(wnp1);

mf_disp(wnp1);

wn_up(wnp2);

mf_disp(wnp2);

wn_up(wnp3);

mf_disp(wnp4);

...

...

As long as the three windows do not overlap, the user will be looking at three different parts of the memory file.


Home Contents Previous Next