/* This Genie resizes text by a percentage factor, keeping the proportions of differing sizes of text in a box. All the text in a box or linked chain will be changed.
Written by Don Cox */
trace n
signal on error
signal on syntax
address command
call SafeEndEdit.rexx()
call ppm_AutoUpdate(0)
cr="0a"x
cpage = ppm_CurrentPage()
counter=0
do forever
box=ppm_ClickOnBox("Click on boxes to be resized")
if box=0 then break
counter=counter+1
boxes.counter=box
call ppm_SelectBox(box)
end
if counter=0 then exit_msg("No boxes selected")
percent = ppm_GetUserText(8,"Percentage of old size")
if percent = "" then exit_msg("Aborted by User")
if ~(datatype(percent,n)) then exit_msg("Invalid entry")