<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
At the end of the day, the forms inside the dll are treated as a
seperate application. The only way I've managed to get forms working
from dlls was to use the activex wizard to convert them into ActiveX
forms. Then I create a client form with nothing on it, and create the
activeX form with no borders, align all client.<br>
<br>
Allan Vergara wrote:
<blockquote
 cite="mid6E8E99EF71A1E2429F679F01AB9DF80A1E95EE@lyra.niche.local"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2600.0" name="GENERATOR">
  <style></style>
  <div>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font size="2"><span
 style="color: blue; font-family: Arial;">Good morning all,</span><span
 style="font-size: 12pt; font-family: 'Arial Unicode MS';"><o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;">&nbsp;</p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font size="2"><span
 style="color: blue; font-family: Arial;">I have a form in a&nbsp;DLL that I
want to dock on a panel that live in the main application.&nbsp; I'm passing
the handle of the panel on to the&nbsp;DLL and using Windows.SetParent to
dock the form.&nbsp; This works fine but the DLL form doesn't get any focus
when I tab around the main application form.&nbsp; Furthermore, when I
manually set focus&nbsp;on one of the control&nbsp;on&nbsp;the DLL form, I noticed
that the main application form loses focus.&nbsp; </span><span
 style="font-family: 'Arial Unicode MS';"><o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;">&nbsp;</p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><font size="2"><span
 style="color: blue; font-family: Arial;">I've tried synchronizing the
main&nbsp;app's TApplication&nbsp;handle and the DLL TAplication handle; no luck
there.&nbsp; I've also tried assigning the panel's handle to the
ParentWindow&nbsp;property of&nbsp;the DLL form and I got some interesting
behaviours.<span style="">&nbsp; </span>The DLL form now&nbsp;receives focus and
the main app's title bar seems to behave properly but there is a
problem... I have 3 TWinControl in my DLL form but for some reason only
one of them is getting focus.&nbsp; Say control1 has focus, the next time I
push the tab key, the focus jumps back on one of the control on the
main application&nbsp; (I have tabstop set to true for all 3
controls).&nbsp;&nbsp;This is causing me a lot of headaches lately so any
help/comments will be much appreciated :)</span><span
 style="font-size: 12pt; font-family: 'Arial Unicode MS';"><o:p></o:p></span></font></p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;">&nbsp;</p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
 style="color: blue; font-family: Arial;"><font size="2">Cheers folks</font></span></p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span
 style="color: blue; font-family: Arial;"><font size="2">Allan</font></span></p>
  <p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style=""
 lang="EN-US"><span style=""><font face="Microsoft Sans Serif" size="2">&nbsp;
  </font></span><o:p></o:p></span></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Delphi mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Delphi@ns3.123.co.nz">Delphi@ns3.123.co.nz</a>
<a class="moz-txt-link-freetext" href="http://ns3.123.co.nz/mailman/listinfo/delphi">http://ns3.123.co.nz/mailman/listinfo/delphi</a>
  </pre>
</blockquote>
</body>
</html>