<br><font size=2 face="sans-serif">Allen</font>
<br>
<br><font size=2 face="sans-serif">I was working on an application a while back with same sort of architecture, dll's within the main app form and found the same sort of problems. The only way we found around the problem was to manually set focus on each control within the dll.</font>
<br>
<br><font size=2 face="sans-serif">Regards</font>
<br><font size=2 face="sans-serif">Robert Wilson </font>
<br>
<br><font size=2 face="sans-serif"><br>
</font><img src=cid:_2_0210000056F800739967CC256F3E><font size=3 face="Times New Roman"> &nbsp;</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Allan Vergara &lt;allan@workpace.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: delphi-bounces@ns3.123.co.nz</font>
<p><font size=1 face="sans-serif">01/11/2004 09:45</font>
<br><font size=1 face="sans-serif">Please respond to NZ Borland Developers Group - Delphi List</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;NZ Borland Developers Group - Delphi List &lt;delphi@ns3.123.co.nz&gt;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;[DUG] Form in DLL</font></table>
<br>
<br>
<br><font size=2 color=blue face="Arial">Good morning all,</font><font size=3 face="Times New Roman">&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">I have a form in a 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 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 on one of the control on the DLL form, I noticed that the main application form loses focus. &nbsp;</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">I've tried synchronizing the main app's TApplication handle and the DLL TAplication handle; no luck there. &nbsp;I've also tried assigning the panel's handle to the ParentWindow property of the DLL form and I got some interesting behaviours. &nbsp;The DLL form now 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;This is causing me a lot of headaches lately so any help/comments will be much appreciated :)</font>
<br><font size=3 face="Times New Roman">&nbsp;</font>
<br><font size=2 color=blue face="Arial">Cheers folks</font>
<br><font size=2 color=blue face="Arial">Allan</font>
<br><font size=2 face="Microsoft Sans Serif">&nbsp; </font><font size=2 face="Courier New">_______________________________________________<br>
Delphi mailing list<br>
Delphi@ns3.123.co.nz<br>
http://ns3.123.co.nz/mailman/listinfo/delphi<br>
</font>
<br>
<br>
<HR><STRONG><FONT COLOR=#ff0000>
Attention: </FONT></STRONG><BR>
Disclaimer: 
<P>The information in this electronic mail message is confidential and may be 
legally privileged. It is intended solely for the addressee. Access to this 
Internet electronic mail message by anyone else is unauthorised. </P>
<P>If you are not the intended recipient, any disclosure, copying, distribution 
or any action taken or omitted to be taken in reliance on it is prohibited and 
may be unlawful. <BR>If you&nbsp; have received this e-mail by mistake please 
call the sender immediately on 09 415 4747 and erase the original message and 
any attachments.</P>
<P>Cellular Cellnet (NZ) Ltd accepts no responsibility for any 
effects this email message or attachments has on the recipient network 
or computer system.
<HR>

<P></P>