Article View: borland.public.cppbuilder.nativeapi
Article #1759Re: Dialogs and templates
From: JD
Date: Thu, 14 Jun 2007 17:40
Date: Thu, 14 Jun 2007 17:40
44 lines
2298 bytes
2298 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote: >JD wrote: > >>Has any one used a template with a dialog? > >You mean a resource file? >That's the usual way to do a dialog. From what little info I could find, I had concluded that a resourse was one option. Under "Customizing the Page Setup Dialog Box", I located dlgs.h which defines constants for the templates and PrnSetup.dlg which has some actual templates. > Or are you thinking of CreateDialogIndirect() I was specifically looking at PageSetupDlg() > and the help topic "Templates in Memory" but it too allows for the template to be in memory so that looks very interesting. My objective is to combine 2 dialogs - PageSetupDlg and a TPrintDialog. I can live with them being seperate but there's a bug with TPrintDialog where the Collate property always returns false. It may very well be that none of my printers support Collate and that's why it's always false but I can still print in a collated fashion and want to use that feature. I haven't built the template yet (I feel confident that that won't be a problem) but what to do after I get it displayed? The PAGESETUPDLG struct used with PageSetupDlg() has a lpfnPageSetupHook so that I can recieve notifications but I can't find anything on what messages to expect except for WM_INITDIALOG and help. Then what do I do when it closes or do I need to keep track of the fields as they change? ~ JD
Technical Details
Message-ID:
<46717d79$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46714248$1@newsgroups.borland.com> <mii273pj867nsl5il8scv41bso6j3rtktg@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,83f881932656eb79 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: Re: Dialogs and templates Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 64.12.116.144 X-Forwarded-For: 172.165.131.130 References: <46714248$1@newsgroups.borland.com> <mii273pj867nsl5il8scv41bso6j3rtktg@4ax.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <46717d79$1@newsgroups.borland.com> Date: 14 Jun 2007 10:40:09 -0700 X-Trace: newsgroups.borland.com 1181842809 207.105.83.66 (14 Jun 2007 10:40:09 -0700) Lines: 45 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail