Hi, Tiny feature request: The TCanvas::Print("file.ps(") mechanism is very useful, but it can be a little inconvenient to have the action of opening/closing a file being atomic with printing a page. Particularly if pages are being generated in some loop one needs to detect the special cases of first and last page and then munge the argument to Print() accordingly. To keep the API the same I'd think choosing a new hint, say "[" and "]" would work. Example: canvas->Print("file.ps["); // No actual print, just open file.ps for (int i=0; i<10; ++i) { // fill canvas for context i // ... canvas->Print("file.ps"); // actually print canvas to file }// end loop canvas->Print("file.ps]"); // No actual print, just close. It seems that the use of the "(" and ")" hints can even be mixed with the above (ie, open with "(" and explicitly close with "]"). -Brett.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:09 MET