[lazarus] Application.MainForm

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Sep 15 15:45:55 EDT 2003

On Tue, 16 Sep 2003 05:05:20 +1000
SteveG <steveg at nevets.com.au> wrote:

> 2 Questions -
> 1 - Using Assigned(Application.MainForm) tells me True/False, but how do 
>      I wait till finished creating if False? 

After the form has finished loading, the Form1.OnCreate event is called.
This does not mean, that all handles are fully created (theme, window sizes
and positions). When this will happen depends on the interface and your
If you want to react, when everything is loaded and the application is ready
to run, use the Application.OnIdle event.

>- Using 
> Application.ProcessMessages causes errors until Form created.
> 2 - Is it possible to access the TApplication data of another 
> application if I have a pointer to it? (or is this not doable in Linux)

No. Pointer has only meaning to one process, including its threads/forks.


More information about the Lazarus mailing list