Autor Beitrag
JoBoCAD
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mo 02.07.12 10:04 
Hallo Zusammen,
aus einer Delphi XE2 Anwendung rufe ich über shellexecute ein weiteres EXE-File auf.
Die Eingabemaske des aufgerufenen Programmes schiebt sich leider nicht vor die aufrufende Maske.

Wie kann ich dies steuern ?

Danke im voraus für Eure Hilfen
Joachim


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 02.07.2012 um 11:10
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19272
Erhaltene Danke: 1740

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 02.07.12 10:38 
Mir fallen da spontan ein:
  • FormStyle auf fsStayOnTop
  • BringToFront
  • SetWindowPos mit HWND_TOP oder HWND_TOPMOST
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10181
Erhaltene Danke: 1254

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 02.07.12 11:12 
Moin!

user profile iconJoBoCAD hat folgendes geschrieben Zum zitierten Posting springen:
rufe ich über shellexecute ein weiteres EXE-File auf.
Zeig mal den Aufruf, speziell den letzten Parameter, da könnte man auch was falsch machen. :idea:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
JoBoCAD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mo 02.07.12 11:18 
hallo Narses,

hier der Aufruf:
ausblenden Delphi-Quelltext
1:
2:
exe_pfad:='c:\temp\exe\test.exe';
i := shellexecute(application.Handle,'open',pchar(exe_pfad),nil,nil,typ);

gruß
JoBoCAD

Moderiert von user profile iconNarses: Delphi-Tags hinzugefügt
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19272
Erhaltene Danke: 1740

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 02.07.12 11:28 
Und was für einen Wert gibst du typ vorher? SW_SHOWNORMAL?
JoBoCAD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 24



BeitragVerfasst: Mo 02.07.12 11:49 
Danke@all
Ich hatte den falschen Typen drin.
Bei mir stand SW_SHOWMINIMIZED.

Nochmals vielen Dank.

Wünsche Euch ne erfolgreiche Woche

JoBoCAd