Article View: borland.public.cppbuilder.nativeapi
Article #1697Re: Dialog child window
From: JD
Date: Wed, 20 Jun 2007 08:50
Date: Wed, 20 Jun 2007 08:50
34 lines
2116 bytes
2116 bytes
>> the dialog remembers what the user had it set to when it closed >> so that if reopened, the CheckBox is set accordingly > > TPrintDialog has its own Collate property. It is set to False by > default. It is set to True if the user checked the box in the dialog. > If you do not reset the property back to False before calling > Execute() again, then the box will be initially checked when the > dialog appears. It doesn't work like that. The Collate property is always false - period - even after checking it and closing the dialog. >> the dialog's Collate getter and setter methods fail to do anything >> if the printer does not support collating. > > There is no getter/setter for that checkbox. I presumed that there was because of the way that I observed how it was working just as I presumed it's behavior was due to my printers not supporting collating but I never got around to confirming it. >> So .... Can I query the control to find out if it's checked >> and dynamically check or uncheck it? > > If you have the control's HWND, then you can do whatever you want with > it. Look at the BM_GETCHECK and BM_SETCHECK messages. That's what I did. Thanks! ~ JD
Technical Details
Message-ID:
<4678ea55@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<46785769@newsgroups.borland.com> <46785c64$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,17b336d121cbb12d X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "JD" <nospam@nospam.com> From: "JD" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <46785769@newsgroups.borland.com> <46785c64$1@newsgroups.borland.com> Subject: Re: Dialog child window Date: Wed, 20 Jun 2007 03:50:26 -0500 Lines: 36 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 172.146.41.247 Message-ID: <4678ea55@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182329429 172.146.41.247 (20 Jun 2007 01:50:29 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail