Enter the original resolution in the fields above. Current resolution and aspect ratio are calculated for you.
resize
sizeToDisplay
buttonUp
buttonUp
gsizeToDisplay
Resize
viewScript
buttonUp
buttonUp
View Script
equals
aspectLabel
Current Res / Original Res = Aspect Ratioo
equals
equals
overType
false
Click on the Resize button to test. The scripts for this are in the book script. The 2 fields below are used to compare the current screen resolution against the original resolution and set up an aspect ratio for the resizing. Fonts will be resized as well, if possible. (If groups are encountered, a recursive handler is called in case there are nested groups.) For best results, use a font such as Helv for field text and button labels rather than the System font, which is not resizable. **MORE**groups are not checked for).
"more"
buttonUp
buttonUp
hRes
"xAspect"
"Not a
z: " &
leaveField
leaveField
xAspect
Not a number:
vRes
"yAspect"
"Not a
z: " &
leaveField
leaveField
yAspect
Not a number:
xAspect
yAspect
buttonUp
buttonUp
One enhancement you will want to make to ensure that your book is completely usable after resizing is to test for the textOverflow of all of the fields. If the textOverflow of the field is not null, set its borderStyle to scrolling. (Click to dismiss)
howToUseThisBook
"Copy the
your
Fmodify" & CRLF & \
2comments therein.
You would
Fneed
dtwo user-defined
""orgX
"""orgY
resolutions
computer on which" &
8was developed.
(e.g., 640
480, respectively)" &
"Written
HDan Lahey.
Copyright (c) 1992, Asymetrix Corp."
buttonUp
buttonUp
Copy the script of this book into your application, then modify
the script per the comments therein. You would then need to set
the two user-defined properties "orgX of this book" and
"orgY of this book" to the resolutions of the computer on which
the book was developed. (e.g., 640 and 480, respectively)
Written by Dan Lahey. Copyright (c) 1992, Asymetrix Corp.