Re: getPageSetup() crashes
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Mar 30, 2003
- 372 views
----=_edgc8vogactuiainljo7l3rcuidhldtd3q.MFSBCHJLHS On Sat, 29 Mar 2003 20:14:00 +1100, Derek Parnell <ddparnell at bigpond.com> wrote: > >I'm sorry Peter, that outburst was uncalled for. Don't worry about it, no offense was taken > >I've been looking through the issue list for win32lib, and I can't see = any >printer issues from you. If you don't mind, can you resend the problem >description (and fix?). Well, since it all seems to have got a bit lost somewhere on this internet thingy, glad I asked! I've managed to modify page setup so you can set paper and orientation defaults, and hacked an example.exw of how to transfer settings from page setup to the print dialogue, which did not previously happen. getPrinter (and getPrintChoice) and getPageSetup(Ex) now return additional info (collate, print to file, paper, and orientation), and startDoc now permits print to file (not as useful as it sounds). Also PD_PAGENUMS is no longer used (it *defaults* the 2nd radio (Pages from/to) - not as one might imagine permit user to click it - rather than leaving the 1st radio (All pages) as the default). I strongly suspect there is a better way to "black box" the code from example.exw within win32lib, perhaps by retaining the pSetupDlg and pPrintDlg structures permanently? On the other hand the existing comment "pPrintDlg is used for experts only." prolly covers it. I'm undecided whether the slew of new constants for paper orientation and size are put in a new, not normally included file, or whether that causes more trouble than it is worth. >What I do have from you is ... > >** UpDOwn control not calling the Click handler. >** Selecting better nonTrue-Type font sizes >** Automatically setting a font size based on container dimensions. >** Statusbar not resizing properly on Windows Maximise. > Gulp! Been busy pestering you haven't I... Pete ----=_edgc8vogactuiainljo7l3rcuidhldtd3q.MFSBCHJLHS Content-Type: application/octet-stream; name=example.exw