<div>It depends on what you want to do with Form1 while Form2 is showing. You can put a line in Form2's OnActivate event to bring Form1 to the front but you will not be able to do anything in Form1 until Form2 is closed. </div>
<div> </div>
<div>Cheers.</div>
<div> </div>
<div>Bob<br><br></div>
<div class="gmail_quote">On Tue, Feb 19, 2013 at 9:43 AM, Antonio Fortuny <span dir="ltr"><<a href="mailto:a.fortuny@sitasoftware.lu" target="_blank">a.fortuny@sitasoftware.lu</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">Hi folks.<br><br>Do you know an event or any other trick I could use when a form re-gains control, i.e. is focused again ?<br>
Events OnShow, OnActivate fire only once after OnCreate.<br>The form is brought to the foreground by the means of a MyForm.BringToFront once a OtherForm.ShowModal returns. The reason is because the WindowsCE forms stack control seems to be rubbish.<br>
The form I want to manage control is also the main form of the program.<br><br>Thanks,<br>Antonio.<br><br><br><br>--<br>______________________________<u></u>_________________<br>Lazarus mailing list<br><a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.<u></u>freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.<u></u>freepascal.org/mailman/<u></u>listinfo/lazarus</a><br></blockquote></div><br>