Forum: Object-Pascal / Delphi-Language
Delphi
by Sprint,
15. Feb 2005
Ich habe es nicht im OnCreate Ereignis ausprobiert. Da ich dieses Ereignis nur benutze, wenn ich etwas visuelles für meine Form erstellen muss. Alles andere mache ich mit einer Variable (FirstRun) vom Typ Boolean im OnActivate Ereignis.
Forum: Object-Pascal / Delphi-Language
Delphi
by Sprint,
15. Feb 2005
Ich verstehe nicht, wo dein Problem liegt. Habe es mal ausprobiert. STunnel mit CreateProcess gestartet. Fokus ist weg. Wenn ich aber ForceSetForegroundWindow(Application.Handle) nach WaitForInputIdle ausführe, habe ich den Fokus wieder.
Forum: Object-Pascal / Delphi-Language
Delphi
by Sprint,
15. Feb 2005
Sonst versuche mal Application.Handle, anstat Self.Handle. Ja, SW_HIDE meinte ich.
Forum: Object-Pascal / Delphi-Language
Delphi
by Sprint,
15. Feb 2005
Starte stunnel versteckt. Oder musst das Fenster auf sein?
Forum: Object-Pascal / Delphi-Language
Delphi
by Sprint,
15. Feb 2005
procedure TForm1.Button1Click(Sender: TObject);
var
SI: TStartupInfo;
PI: TProcessInformation;
begin
FillChar(SI, SizeOf(TStartupInfo), 0);
with SI do
begin