Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Mit Programm öffnen... per doppelklick (https://www.delphipraxis.net/150997-mit-programm-oeffnen-per-doppelklick.html)

Luckie 3. Mai 2010 19:47

Re: Mit Programm öffnen... per doppelklick
 
Zitat:

Zitat von -Phantom-
Mir hat das hier schon gereicht

Von Fehlerbehandlung hältst du wohl nicht viel? :roll:

-Phantom- 3. Mai 2010 19:51

Re: Mit Programm öffnen... per doppelklick
 
Mit ParamCount und Paramstr machste das so :

Du legst eine Globale Variable an z.B
Delphi-Quellcode:
Aktive : Boolean ;
Das schreibst du dann bei Form.create rein :
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
begin
Aktive := True;
...
Dann bei FormActivate :
Delphi-Quellcode:
procedure TForm2.FormActivate(Sender: TObject);
var
pfad : String;
begin
if (aktive) and (ParamCount>0) then
begin
aktive := False;
pfad := Paramstr(1);
________________________________________

Gruß

Mathias

DeddyH 3. Mai 2010 19:51

Re: Mit Programm öffnen... per doppelklick
 
Zitat:

Zitat von Luckie
Von Fehlerbehandlung hältst du wohl nicht viel? :roll:

Wozu? Man kann ja im Fehlerfall hier nachfragen :?

SimonRap 3. Mai 2010 19:53

Re: Mit Programm öffnen... per doppelklick
 
Vielen Dank...
normalerweise such ich auch erst, bevor ich frage, aber die Frage hat sich grad so ergeben...
Schande über mich :wall: ... ich werd nächste Mal zuerst Tante google und onkel delphipraxis.net/search.php benutzen...
mfg simon
nich wundern, ich schreib das noch bei 3 anderen themen rein^^


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:38 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz