Consultor Eletrônico



Kbase 19163: Where Is The PRO*Tools Screen Scaling Utility Documented?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/08/2003
Status: Technically Reviewed

FIX:

At this writing, the Progress Screen Scaling Utility is not referenced
in the documentation set. You can find the information about this PRO*Tool by pressing f1 from the tool itself. Select "Help" > "Screen Scaling Utility Help" from the Tool, or go to the On-Line Help Index and type "Screen-Scaling Utility". Either of these methods brings you to the same documentation screen which is given here verbatim.

PRO*Tools
Screen Scaling PRO*Tool

The Screen Scaling Utility assists in scaling the size and position of
objects in UIB-generated procedures. To conform to Microsoft
standards, PROGRESS Version 8.2A (and higher) uses a smaller character unit size than previous versions. The use of a smaller character unit size causes screens from earlier versions to be smaller (in pixels). Sometimes text and images do not properly fit in the smaller screens. Use this utility to help convert pre-Version 8.2A screen sizes.

Notes:

1) You must have the UIB open to use this utility.

2) Make sure to create backup copies of the files before you convert them.

3) Do not use this utility more than once on the same source file. If you convert a file twice, you will double the scaling process.

4) This utility uses specific rules for scaling screens. You can therefore use this utility to scale by nearly any factor by specifying an ·artificial· cell size.

- File menu.

Exit the Screen Scaling utility.

- File Spec.

Enter a filename or the DOS wildcard expression that indicates the types of files you want to convert. The default is *.W.

- Old Pixels-Per-Column.

Enter the pixel size of the y coordinate for the cell in the pre-V8.2A procedure. (Typically 7 for a small font and 9 for a large font.) NOTE: The size to which the utility will scale the cell is always 5 pixels per column.

- Old Pixels-Per-Row.

Enter the pixel size of the x coordinate for the cell in the pre-V8.2A procedure. (Typically 26 for a small font and 32 for a large font.) NOTE: The size to which the utility will scale the cell is always 21 pixels per row.

- Directory.

Enter the directory that contains the files you want to convert.

- Browse.

Allows you to search for a directory. Include Subdirectories indicates to include files in subdirectories of the directory you specify in the Directory field.

- Include Subdirectories.

Indicates to include files in subdirectories of the directory you specify in the Directory field.

- Scaling Options.

a) Reposition all controls, don·t resize controls specified in pixels.

Repositions all objects. Resizes only those objects that have their layout specified in character units. Does not resize objects that have their layout specified in pixels, such as images or buttons that contain images.

b) Only scale controls specified in Character Units.

Repositions and resizes only those objects that have their layout specified in character units. Does not reposition or resize objects that have their layout specified in pixels.

- Scale all controls.

Repositions and resizes all objects.

- Reposition all controls, don·t resize controls with Images.

Repositions all objects. Resizes all objects except images or buttons that contain images (even if the images are specified in character units).

- Start Scaling.

Starts the scaling process. The utility opens each file in the UIB, applies the scaling conversion, and then overwrites the existing source files.

- Stop Scaling.

Stops the scaling process.

PRO*Tools Screen Scaling Rules

The Screen Scaling PRO*Tool uses the following rules for the scaling:

- x-factor = DECIMAL(old-pixels-per-column) / 5.0

- y-factor = DECIMAL(old-pixels-per-row) / 21.0

- The size of all scaled objects will change by the follwing formulas:

--- new width = x-factor * old-width
--- new-height = y-factor * old-height

- The position of all scaled objects (except for windows) will change by the following formulas:

--- new-x-position = ((o.ld-x-position - 1.o) * x-factor) + 1.0
--- New-y-position = ((old-y-position - 1.0) * y-factor) + 1.0.