Autor Beitrag
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 27.04.06 19:00 
Hallo.

Ich hab das Problem, wenn man ein Formular mittels show; anzeigt, dieses Formular auch immer den Focus hat. Ich möchte nun aber das Formular anzeigen, dass es zwar im Vordergrund sichtbar ist, aber den Fokus nicht klaut.

Wie kann ich das machen, ohne vor dem anzeigen den aktuellen Fokus zu ermitteln und nach dem anzeigen ihn wieder zurückzugeben ?

Danke,

Matze

_________________
In the beginning was the word.
And the word was content-type: text/plain.
matze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 28.04.06 09:18 
Selber gefunden:
Man zeigt das Fenster mit folgendem Code an:
ausblenden Delphi-Quelltext
1:
SetWindowPos(Handle, HWND_NOTOPMOST, Left, Top, Width, Height, SWP_SHOWWINDOW or SWP_NOACTIVATE);					

Der Parameter SWP_NOACTIVATE ist der springende Punkt, der das genwünschte Verhalten hervorruft.

_________________
In the beginning was the word.
And the word was content-type: text/plain.