axScreenSize

Description

The Auto Zoom feature in TS1 calculates the zoom amount based on the default screen size (which is derived from the 5250 terminal size which is normally 80 rows x 24 columns). When larger real estate area is required for a screen, it is necessary to specify the width and height of the screen to help the layout engine calculate the correct zoom. This eXtension allows you to define this size.

The TS2 engine calculates the zoom based on the actual contents of the screen. SoU it may not be necessary to specify a size. But, if you want to override the default calculations for an effect, or to force consistency with TS1 this eXtension will allow you to override the calculated height and width.

In TS2, this eXtension will also allow you to override the zoom setting used by the layout engine.

Properties

Name Description and Comments JavaScript Shipped default
height Height of the screen (in pixels). If 0 the default screen height will be used. Yes 0
lockZoom Locks the zoom control in the user interface, preventing the user from changing it. This is available in TS2 only. Yes False
width Width of the screen (in pixels). If 0 the default screen width will be used. Yes 0
zoom

Sets the zoom value for the current screen. Allowable values are:

-2: Fit. This causes the screen to automatically zoom to fit the window. This is a one-off operation. The zoom will not adjust when the window is resized.

-1: Auto. This causes the screen to automatically zoom to fit the window. The zoom will continue to adjust when the window is resized.

0: Use current. This leaves the zoom setting untouched.

5-200: Custom. This sets the zoom to the specified percentage.

This is available in TS2 only.

Yes 0

See Also

Understanding Screen Sizing and the Thin Red Line in Tutorial 11 - 5250 Screen Styling

Administrators

Legal Mentions

aXes is brought to you by:

LANSA

Serving the IBM i community for 30 years.