(Gast)
n/a Beiträge
|
Re: Problem beim Focus setzen nach erstellen eines forms
11. Nov 2008, 13:35
Hallo,
probier mal das:
Delphi-Quellcode:
procedure TForm1.JvTrayIcon1DblClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
If Not Assigned(Form2) then Application.CreateForm(TForm2, Form2);
Form2.Show;
Form2.edit1.SetFocus;
Application.BringToFront;
end;
Delphi-Quellcode:
program Project1;
uses
Forms,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in '..\Unit2.pas' {Form2};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
// Application.CreateForm(TForm2, Form2);
Application.Run;
end.
|
|
Zitat
|