Autor Beitrag
butterkeks
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56

Win XP, Win 7
Delphi 2007
BeitragVerfasst: Mo 07.07.08 10:02 
Hallo leute,

ich hab folgendes problem mit meinem Programm:

Wenn ich normalerweise ein Proggi starte, erscheint es in der Taskleiste und bekommt den Fokus von Windows her, mein aktuelles bekommt das aber nicht mehr hin.

Es startet und wird weder in der Taskleiste angezeigt, noch wird das Formular fixiert.

Wenn ich das Proggi starte bleibt der Focus beim Delphi Fenster aber das Programm kommt in den vordergrund, sodass wenn ich etwas tippe, ich nicht im Programm tippe sondern im delphi code-editor.

Kann mir jemand sagen woran das liegen könnte und wie man es beheben kann?

_________________
Dear lord,
please grant me the ability to punch people in the face over Standard TCP/IP!
MSCH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1448
Erhaltene Danke: 3

W7 64
XE2, SQL, DevExpress, DevArt, Oracle, SQLServer
BeitragVerfasst: So 13.07.08 18:50 
Schau mal in den OI des Formulars. Da gibts ein Property activeControl.

vielleicht hilft das.
grez
msch

_________________
ist das politisch, wenn ich linksdrehenden Joghurt haben möchte?
butterkeks Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56

Win XP, Win 7
Delphi 2007
BeitragVerfasst: Mi 23.07.08 16:35 
hmmm das wäre eine möglichkeit, aber ich möchte ja gerne wissen wieso das überhaupt passiert...

das is n fehler den ich absolut nicht nachvollziehen kann :(

ich hatte sowas vorher noch nie und es gibt auch keine eistellungen die verstellt sind sodass das passiert!

kennt nicht vllt noch jemand das problem oder weiss wie man sowas wieder behebt?

_________________
Dear lord,
please grant me the ability to punch people in the face over Standard TCP/IP!
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 23.07.08 16:36 
Ich hatte mal das Phänomen, dass D7 mir immer wieder Form1.Visible auf false gesetzt hat.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell
butterkeks Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 56

Win XP, Win 7
Delphi 2007
BeitragVerfasst: Do 24.07.08 08:19 
ja aber dann wäre ja nur das Form unsichtbar.

Aber es ist ja sichtbar nur nicht im Fokus oder in der Taskleiste angezeigt!

Ich hab jetz mal mit dem codeschnipsel

ausblenden Delphi-Quelltext
1:
2:
3:
4:
setWindowLong( Application.Handle, GWL_EXSTYLE,
                 GetWindowLong(Application.Handle, GWL_EXSTYLE) or
                 WS_EX_APPWINDOW);
ShowWindow( Application.Handle, SW_SHOW );


das programm von hand wieder in die Taskleiste geschrieben, aber das kanns ja nicht sein...
es müsste ja eigentlich standartmäßig da drin zu sehen sein!

_________________
Dear lord,
please grant me the ability to punch people in the face over Standard TCP/IP!