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.

Cheers.

Bob

On Tue, Feb 19, 2013 at 9:43 AM, Antonio Fortuny
<[email protected]>wrote:

> Hi folks.
>
> Do you know an event or any other trick I could use when a form re-gains
> control, i.e. is focused again ?
> Events OnShow, OnActivate fire only once after OnCreate.
> 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.
> The form I want to manage control is also the main form of the program.
>
> Thanks,
> Antonio.
>
>
>
> --
> ______________________________**_________________
> Lazarus mailing list
> [email protected].**freepascal.org<[email protected]>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to