home *** CD-ROM | disk | FTP | other *** search
- /* $VER: Warp Text 1.0 (11.20.96)
- Copyright 1996 SoftLogik Publishing Corporation
- May not be distributed without SoftLogik Publishing Corporation's express written permission */
-
- ADDRESS 'PAGESTREAM'
- options results
-
- /* CHECK FOR OBJECTS */
- getselectedobjects
- if result<2 then call OOPS()
-
- /* OPTIONS DIALOG BOX */
- allocarexxrequester '"Warp Text in Shape"' 360 57
- hDialog=result
- addarexxgadget hDialog checkbox 12 12 106 label '"Bend Lines (slower, but better quality)"'
- hCheckBend
- addarexxgadget hDialog exit 12 38 70 label "OK"
- hOK=result
- addarexxgadget hDialog exit 278 38 70 label "Cancel"
- hCancel=result
- doarexxrequester hDialog
- action=result
- getarexxgadget hDialog hCheckBend checked
- iBend=result
- freearexxrequester hDialog
- if action=hCancel then EXIT
-
- /* BUSY DIALOG */
- 'lockinterface true'
- openbusyrequester message "'Warping text...'" thermometer disabled abort disabled
- hBusy=result
- 'refresh wait'
-
- /* WARP TEXT */
- 'maketextfxpath'
- if rc~=0 then do
- 'refresh continue'
- 'lockinterface false'
- call OOPS()
- end
- if iBend=0 then 'edittextobj textfx warp bendlines false distortx false'
- if iBend=1 then 'edittextobj textfx warp bendlines true distortx false'
-
- 'closebusyrequester 'hBusy
- 'refresh continue'
- 'refreshwindow'
- 'lockinterface false'
-
- EXIT
-
- OOPS:
- /* TextFX not installed or wrong objects */
-
- allocarexxrequester '"Cannot Warp Text"' 418 67
- hAlert=result
- addarexxgadget hAlert TEXT 8 12 400 border none string '"You must have TextFX 2 installed and select a text"'
- addarexxgadget hAlert TEXT 8 24 400 border none string '"block and a shape or path to use this script."'
- addarexxgadget hAlert EXIT 336 48 70 label "Exit"
- doarexxrequester hAlert
- freearexxrequester hAlert
-
- EXIT
- RETURN
-