How can I print all parts of oversize cards..Happy ending.

Kresten Bjerg Kresten.Bjerg at psy.ku.dk
Tue Nov 15 18:17:28 EST 2005


Hey, to Jacqueline, and the other helpers
 
Jacquelines last posting solved the problem, -
 
the imagedata line didnt work, instead:
 
(I copy below essentials of the handler, in case somebody should get involved in the same mysteries)
 
 Jacqueline,I am not sure, how I caused the misunderstanding,but the 9 full screen windows 
are certainly not all visible at the same time. Only 1 at a time ! We are looking forward to 
publishing a beta-version within a few weeks, and hope to find a bit of interest among some
 members from this list:
It will be a freeware cross platform standalone with open sourcecodes,for users to organize
 a personal electronic diary,including the use of glyphs as ascii-characters in 12 freeware fonts.
 Allready interested can mail me a direct note with their e-mail adress, - they will then hear from me
, when the beta-version is ready.
 kresten.bjerg at psy.ku.dk                                   www.psy.ku.dk/bjerg 

The handler handles 6 fullscreen windows on the card in one way, 3 fullscreen windows in another way, 
which necessitated an extra(non-visible) substack /bufferstack

on printwindow
  global phenowindow,printbuffer,screenbuff
  set the cursor to watch
  set the printmargins to 20,20,5,5
  set the printScale to .70
  set the printRotated to true
  if phenowindow is mainwindow then
    Print this Card from 1,20 to 1020,763
  end if
  if phenowindow is oikoswindow then
    Print this card from 730,0 to 2046,732
  end if
 etc, etc etc etc  for 4 more windows

but

  if phenowindow is gardenwindow then
    export snapshot from rect "0,0,1020,770" to screenbuff as JPEG
    go stack "Printbuffer"
    put screenbuff into image "Bufferimage"
    print stack "Printbuffer"
    go stack "Phenomenalog"
  end if
  if phenowindow is homewindow then
   export snapshot from rect "0,0,1020,770" to screenbuff as JPEG
    go stack "Printbuffer"
    put screenbuff into image "Bufferimage"
    print stack "Printbuffer"
    go stack "Phenomenalog"
  end if
 ..... plus one more of that type
end printwindow

(observe that the rects for windows with hrect< 2000 use the card rects, while the last, with hrect>2000 ,using snapshot, are using the screenrects.





More information about the use-livecode mailing list