home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 58
/
af058b.adf
/
PV21.lha
/
REXX
/
MoveObj.pvrx
< prev
next >
Wrap
Text File
|
1991-08-13
|
724b
|
34 lines
/* MoveObj.pvrx---move selected objects by precise increments */
options results
/* Try to get exclusive lock on project window.
If can't get lock, not polite to interrupt. */
'Lock'
if rc ~= 0 then exit
'SelectList' Sel; SelN = Result
if SelN = 0 then call Error "No object selected!"
'GetStr "Move X - Move Y (N1 N2)" "OK" "CANCEL"' /* longest prompt */
MCoords = result
if rc ~= 0 | words(MCoords) ~= 2 then,
call Error "Macro CANCELed or Bad Coords given"
MX = subword(MCoords,1,1) /* extract the X and Y values */
MY = subword(MCoords,2,1)
'PushUndo'
do i = 0 to SelN-1
'Move' Sel.i MX MY
end
'Repair'
ERROR:
arg ErrTxt
if RC ~= 0 | ErrTxt ~= "" then 'GetBool ErrTxt "Cancel" "Cancel"'
'UnLock'
exit