[Lazarus] Form event

Bob Hofman oldtimer.tools at gmail.com
Tue Feb 19 17:12:42 CET 2013


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
<a.fortuny at sitasoftware.lu>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
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130219/a311de73/attachment-0003.html>


More information about the Lazarus mailing list