Article View: borland.public.cppbuilder.nativeapi
Article #4203Re: tcolordialog in dll
From: Ted Tripp
Date: Sat, 04 Mar 2006 03:39
Date: Sat, 04 Mar 2006 03:39
35 lines
2065 bytes
2065 bytes
OK, thanks Dennis. Yes, VCL. I'll take this approach. "Dennis Jones" <nospam@nospam.com> wrote in message news:44086a31$1@newsgroups.borland.com... > > "Ted Tripp" <ttripp@rankexec.com> wrote in message > news:4407c806$1@newsgroups.borland.com... >> Hi, >> >> BCB5 >> >> I have an app that loads a dll form and in this form I call a >> colordialog. >> After clicking the OK or Cancel in the colordialog, the form appears to >> go >> behind the app. >> >> I tried using a variety of ShowWindow's, but don't seem to have any way >> of >> control the MainForm from within the dll. >> >> Any ideas on how to keep my dll form on top? > > Is it a VCL form? Is the form in a DLL or a package (BPL)? > > If you are using a VCL form in a DLL, are you setting the DLL's > Application->Handle property before trying to create any forms in the DLL? > If you are not doing this, you should. The DLL's Application->Handle > property must be set to the handle of the EXE's main window otherwise you > will get odd behavior like that which you are describing. > > - Dennis > >
Technical Details
Message-ID:
<44090bd8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4407c806$1@newsgroups.borland.com> <44086a31$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,2eae01a0518e00ab X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Ted Tripp" <ttripp@rankexec.com> From: "Ted Tripp" <ttripp@rankexec.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4407c806$1@newsgroups.borland.com> <44086a31$1@newsgroups.borland.com> Subject: Re: tcolordialog in dll Date: Fri, 3 Mar 2006 21:39:03 -0600 Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 63.224.23.27 Message-ID: <44090bd8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141443544 63.224.23.27 (3 Mar 2006 19:39:04 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!newshub.sdsu.edu!peer01.west.cox.net!cox.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail