Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Hoolicon
Saving Global Variables to a File
Minimizer
XmySQL
Magic Button
ProMix
AX Icons
Toast
SpellCatcher
asPitchDetect Xtra
MediaMacros Xtras Mall
 

 

 

Behavior PrintOmatic lite behavior

Added on 6/10/1999

 

Compatibilities:
behavior D6_5 Mac PC

Required Xtras:
PrintOMatic

This item has not yet been rated

Author: StuartAcklam (website)

PrintOmatic lite behavior

property pPreOrPri, pMember, pName
property pRect1, pRect2, pRect3, pRect4 --sets up the borders
property pOriantation  -- sets up Landscape of Portrait

on mouseUp me
  
  cursor 4
  set doc = new (xtra "printomatic_lite")
  
  if not objectp(doc) then exit
  
  setDocumentName doc, pName
  setMargins doc, rect(pRect1, pRect2, pRect3, pRect4)
  
  if pOriantation = "Portrait" then
    setLandscapeMode doc, FALSE
  else
    setLandscapeMode doc, True
  end if
  
  append doc, member pMember
  
  cursor -1
  
  -- options are "Print", "Preview", "Both"
  if pPreOrPri = "Print" then
    if doJobSetup(doc) then
      print doc
    end if
  end if
  
  if pPreOrPri = "Preview" then
    if doJobSetup(doc) then
      printPreview doc
    end if
  end if
  
  if pPreOrPri = "both" then
    if doJobSetup(doc) then
      printPreview doc
      print doc
    end if
  end if
  
  set doc = 0
end

on getPropertyDescriptionList
  
  set p_list =[¬
#pName:¬
  [#comment: "Name of Job:", #format: #string, #default: "StusJob" ], #pMember:[#comment: "Which Member:", #format: #member, #default: "" ], #pPreOrPri: [ #comment:   "Options of print:" ,#format:   #string, #default:   "Print", #range :["Print", "Preview", "Both"] ], #pOriantation: [ #comment:   "Oriantation:" ,#format:   #string, #default: "Portrait", #range :  ["Portrait", "Landscape"]],  #pRect1: [ #comment:   "Border left:" ,#format:   #integer, #default: 32], #pRect2: [ #comment:   "Border top:" ,#format:   #integer, #default: 32], ¬
  #pRect3: [ #comment:   "Border right:" ,#format:   #integer, #default: 32], ¬
  #pRect4: [ #comment:   "Border bottom:" ,#format:   #integer, #default: 32] ]
  
  return p_list  
  
end

on getBehaviorDescription
  return "simple PrintOmaticLite stuff......." &return& "by Stuart M Acklam, 7Feb98 "
end getBehaviorDescription  

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail