M
Markus Humm
Hello,
I've changed my program a bit now. The login screen gets closed properly
now I think but I've another serious issue: the main screen which should
be shown afterwards is put into the background. One has to activate it
via memory/running programs -> activate. Very annoying.
My program is like this:
In the main I do
Application.run(TLoginScreen.Create);
if loginok then Application.run(TMainScreen.Create);
and in the on click of the login screen's login button I set loginok
which is a global boolean flag.
How to bring the main form into the foreground? I think run is a
blocking call and one needs to have the main form run otherwise no
message queue for the program will exist, am I right on that?
Greetings
Markus
I've changed my program a bit now. The login screen gets closed properly
now I think but I've another serious issue: the main screen which should
be shown afterwards is put into the background. One has to activate it
via memory/running programs -> activate. Very annoying.
My program is like this:
In the main I do
Application.run(TLoginScreen.Create);
if loginok then Application.run(TMainScreen.Create);
and in the on click of the login screen's login button I set loginok
which is a global boolean flag.
How to bring the main form into the foreground? I think run is a
blocking call and one needs to have the main form run otherwise no
message queue for the program will exist, am I right on that?
Greetings
Markus