home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 5
/
amigaformatcd05.iso
/
readerstuff
/
c.partridge
/
amigatable
/
usingwithfinalwriter
/
amigatable.rexx
next >
Wrap
OS/2 REXX Batch file
|
1996-08-13
|
1KB
|
74 lines
/*
AmigaTable v1.2
(C)1996 SceptreSoft
This is an UNREGISTERED VERSION of the macro
This is freely distributable, providing it is not changed in any way.
See AmigaTable.Guide for futher details...
*/
Options Results
Status Page
PaNum = Result
Status View
VSize = Result
Status ScrollPos; parse var result ScrollX ScrollY
Status LinePos; parse var result BegLine BegPosition EndLine EndPosition
Bee=""
If EndLine="" then do
Showmessage 1 1 '"There Is No Text Selected" "Click OK To Load/Create a table" "or CANCEL to abandon." " OK " " CANCEL " ""'
Choice = Result
Bee="k"
If Choice=2 then do
Exit
End
If Choice=1 then do
Address Command "delete clips:#?"
End
End
If Bee="" then do
MoveToLine Endline endposition
Newparagraph
Type "End"
MoveToLine Begline 0
ShiftDown
MoveToLine (Endline+1) 3
ShiftUp
Copy
End
Address Command "AmigaTable:Amigatable"
ScreenToFront
WinToFront
If exists("clips:exp.iff") then do
Cut
View 40
InsertImage "CLIPS:Exp.iff"
ID = RESULT
ObjectToFront 0
SetObjectParams 0 TEXTFLOW RightVert FILL Transparent LINKED No DISPLAY Full
GetObjectCoords 0; parse var result pg xc yc wid hgt
width=(wid*0.85)
height=(hgt1.2)
RequestText '"Table Width (ruler units)" "How wide would you like your table?" ""'
width=result
If Result="" THEN do
width=wid
end
RequestText '"Table Height (ruler units)" "How high would you like your table?" ""'
height=result
If Result="" THEN do
Height=hgt
end
SetObjectCoOrds 0 Pg xc yc Width Height
View VSize
ReDraw
End