<!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;"> </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 DLL that I
want to dock on a panel that live in the main application. I'm passing
the handle of the panel on to the DLL and using Windows.SetParent to
dock the form. This works fine but the DLL form doesn't get any focus
when I tab around the main application form. Furthermore, when I
manually set focus on one of the control on the DLL form, I noticed
that the main application form loses focus. </span><span
style="font-family: 'Arial Unicode MS';"><o:p></o:p></span></font></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"> </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 app's TApplication handle and the DLL TAplication handle; no luck
there. I've also tried assigning the panel's handle to the
ParentWindow property of the DLL form and I got some interesting
behaviours.<span style=""> </span>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. 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 (I have tabstop set to true for all 3
controls). 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;"> </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">
</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>