4.1 Summary

This is a subroutine package that enables you to set multiple workstation viewports in a single screen by dividing the machine-dependent graphics display area.



The main subroutines contained in this package are the following.

SLINIT ... Performs initialization.
SLSIZE ... Sets a frame according to page sizes such as A4 and B4.
SLFORM ... Sets a frame with the actual horizontal and vertical dimensions.
SLDIV  ... Divides a screen area.
SLMGN  ... Sets margins.
SLRAT  ... Sets margins by specifying the aspect ratio.
SLSTTL ... Sets the title.



By first calling SLINIT, the frame is set to the maximum size. However, since SLINIT is called internally in SGOPN (see Section 2.4.1), the user does not have to call it directly. This maximum-sized frame is called the level-1 frame. If no other routines in the SLPACK is called, this frame will be the workstation viewport. Furthermore, by using  SLSIZE or SLFORM, the level-1 frame can be reset to preferred dimensions.



Next, margins (blank borders) of a frame can be set using SLMGN. The new frame will be the area inside the margins. By SLRAT, you can set margins by specifying the aspect ratio. Text (titles) can be placed in the margins only in level-1 frames. The text is set using  SLSTTL.



To have more than 2 workstation viewports in a page, call subroutine SLDIV to divide the level-1 frame. You must specify the order and the number of sections of the workstation viewport. Each section is called the level-2 frame. By calling SLMGN or SLRAT again, margins can be set for all level-2 frames. A frame may be divided using SLDIV up to 2 times. In other words, the highest level of frames is level-3. The SGFRM (See Section 2.4.2) treats the frames set by the above method as workstation viewports, and defines the frames consecutively, placing page breaks when necessary.



Basically, these routines must be called between the routine SGOPN called first and SGFRM. However, SLSTTL can be called after SGFRM, and this becomes effective after the next page break.



There is also a subroutine for drawing the frame border using solid lines or corner marks according to the information managed by GRPH1.

SLPVPR ... Draws a viewport border.
SLPWWR ... Draws a workstation window border.
SLPWVR ... Draws a border of the maximum frame.
SLPVPC ... Draws the 4 corners of a viewport.
SLPWWC ... Draws the 4 corners of a workstation window.
SLPWVC ... Draws the 4 corners of the maximum frame.



The internal variables used by SLPACK is handled by SGpGET/SGpSET.



Internally, these subroutines use a COMMON block named the SLBLK1. The user must not use an external procedure or a COMMON block with this name.