Ok, before I start beating my head against the file cabinet again this year
because printing in Director is such a pain.  I used POM on the last project
I needed printing, but it seemed like I was constantly running around in
circles trying to figure out the POM coordinet system.  Let me explain what
I need to do.  I need to take 8.5 x 11 forms, display them on-screen, have
text fields that can be filled in by the user, and then print the form and
the text fields out.  The way I went about this last time was to simply have
a reduced version of the form on-screen.  Then with POM call the 8.5 x 11
version of the form, take the text from the text fields increase its size
and position it with the larger version and finally get my print out.  I
think I already know that there is no better solution than POM, since yes
this does need to be cross-platform.  I don't think to this point I have
asked a question, but rather just complained... so can anyone offer up some
advise on POM coordinet system, or maybe recommend a good pain killer cause
my head hurts.  I've read the POM help file on the coordinet system, but I
am still having problems.

-- a clip of the code... I removed most of the text field positionings as to
not bore you with those

on mouseUp
  cursor 4
  sprite(150).visible = true
  updatestage

  set doc = new(xtra "PrintOMatic")
  doc.setDocumentName("Cause")
  doc.newpage()

  if the machinetype = 256 then
    importfileinto member("printable"), "@\prints\AH_causeandeffect.jpg"
    settextfont doc, "Arial"
  else
    importfileinto member("printable"), ":prints:AH_causeandeffect.jpg"
    settextfont doc, "Helvetica"
  end if
  printme = "AH_causeandeffect"

  drawPicture doc, member(printme), Rect(-42,-38,680,684)

  settextsize doc, 11

  doc.drawText(member("name").text, point(383,-27))
  doc.drawText(member("date").text, point(383,-8))
  doc.drawText(member("other").text, point(359,9))

  --  doc.printpreview()
  if dojobsetup(doc) then print doc
  doc = 0
  cursor 0
  sprite(150).visible = false
  updatestage
  member(printme).name = "printable"
  member("printable").media = member("printable_blank").media
end

-- end clip

Heres what I don't understand -- drawPicture doc, member(printme),
Rect(-42,-38,680,684) -- why is it that the rect has negative numbers?
Shouldn't the top left be (0,0)?  I dunno...

Sorry for the outburst, and the spelling, but thank you for any help
John


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to