Article View: borland.public.cppbuilder.nativeapi
Article #4199Re: tcolordialog in dll
From: Dennis Jones
Date: Fri, 03 Mar 2006 16:09
Date: Fri, 03 Mar 2006 16:09
25 lines
1777 bytes
1777 bytes
"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:
<44086a31$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!199.218.7.141!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4407c806$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 From: "Dennis Jones" <nospam@nospam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <4407c806$1@newsgroups.borland.com> Subject: Re: tcolordialog in dll Date: Fri, 3 Mar 2006 08:09:22 -0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 204.200.27.7 Message-ID: <44086a31$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141402161 204.200.27.7 (3 Mar 2006 08:09:21 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!199.218.7.141!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail