Hi Folks,
program starts, code in the lpr Creates Form1, there with Menus i call Form2
So far, so good
Now i want to offer the option to start the program from the CLI with passing some options (e.g. "myapp.exe -report ODBC")
In the lpr i check HasOption and use GetOptionValue if True. Works!
BUT: How can i show Form2 only AFTER Form1 is completely painted?
I'm looking for something like "AfterShow"-Event.
NB: i already tried OnActivate of Form1, but for some unknown reason that one doesn't fire
Form2 is Modal with Form1 as Parent
Pseudo-code
//in lpr
If Application.HasOption('r','report') Then Report:=Application.GetOptionValue('r','report');
Form1.Show;
//In Form1
If Report='ODBC' Then
If Form1 is completely visbile Then Form2.ShowModal;
EDIT: Right, easy to workaround with a Timer set to 500, but..... seriously?
And i got Activate to fire. No idea what i did wrong in the first run