Autor Beitrag
ptronick
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

win xp prof.
D5 Stand
BeitragVerfasst: Mi 01.09.04 13:50 
hi

Für mein Programm brauche ich so ein "Speichern unter" und "Öffnen" - Ding (Wie es halt jeder kennt).

Ich hab jedoch leider keine Ahnung wo ich anfangen soll.

Ein Main-Menu mit Items hab ich schon.
Muss ich ein neues Formular anfangen? Oder gibt es sogar etwas vorgefertigtes?
Benutzt man Comboboxen um Laufwerke anzuzeigen?
Und wie liest man Ordnerinhalte aus und zeigt sie an?
Und vor allem, mit was soll ich anfangen?

bitte Helft mir!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 01.09.04 13:53 
Nimm doch einfach die SaveDialog-Komponente, bzw. OpenDialog-Komponente.
Gehören zum Standardlieferumfang von Delphi und stehen unter dem Register Dialoge.
ptronick Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

win xp prof.
D5 Stand
BeitragVerfasst: Mi 01.09.04 14:46 
Danke! Das hat mich ein ganzes Stück weiter gebracht!
ptronick Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

win xp prof.
D5 Stand
BeitragVerfasst: Mi 01.09.04 19:48 
Hi

Ich hab noch ein kleines Problem am Rande:

Kann der Save-Dialog eine Endung (z.b .ini )an meine Datei dranhängen wenn der Benutzer dies vergisst?

Danke!
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 01.09.04 19:58 
Entweder über die Eigenschaft DefaultExt des SaveDialogs, oder du prüfst manuell mit Hilfe von ExtractFileExt.

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
ptronick Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

win xp prof.
D5 Stand
BeitragVerfasst: Mi 01.09.04 20:27 
was soll ich genau in DefaultExt reinschreiben?
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mi 01.09.04 20:34 
ptronick hat folgendes geschrieben:
was soll ich genau in DefaultExt reinschreiben?


"ini" ?

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)


Zuletzt bearbeitet von StefanH am Mi 01.09.04 20:43, insgesamt 1-mal bearbeitet
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 01.09.04 20:40 
Zitat:
.ini ?
Wenn, dann nur 'ini', kein Punkt
Die Delphi Hilfe, die sich irgendwie nutzlos vorkommt hat folgendes geschrieben:
Die Eigenschaft DefaultExt legt die standardmäßige Dateierweiterung fest.

property DefaultExt: String;

Beschreibung

Die Eigenschaft DefaultExt bezeichnet eine Dateierweiterung, die automatisch an den ausgewählten Dateinamen angehängt wird, wenn dieser noch keine registrierte Erweiterung enthält. Wenn der Benutzer eine Datei mit einer nicht registrierten Erweiterung auswählt, wird DefaultExt an die Erweiterung angehängt.

Erweiterungen mit mehr als drei Zeichen werden nicht unterstützt. Geben Sie die Erweiterung ohne den Punkt an, der den Dateinamen von der Erweiterung trennt.
nächstesmal gleich F1! :wink:

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mi 01.09.04 20:44 
user defined image

ich war mit den Gedanken bei einem anderen Problem :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
ptronick Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

win xp prof.
D5 Stand
BeitragVerfasst: Mi 01.09.04 20:47 
schade, geht nicht...

Ich hab da jetzt schon fast alles reingeschrieben mit + , * und was es sonst noch für Sachen gibt...
Kann es sein, dass ich wo anders etwas nicht eingestellt hab?
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 01.09.04 20:50 
Mit Punkt geht auch, habe zufällig ein lebendes Beispiel vor mir.
Aber was heißt hier reinschreiben mit "+,*" und so weiter? Einfach nur ".ini":
ausblenden Delphi-Quelltext
1:
SaveDialog1.DefaultExt:='.ini';					

:roll:

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 01.09.04 20:51 
wann schreibt jemand mal ein FAQ, wie man die Delphi-Hilfe benutzt?

@ptronick:
Was du meinst ist die Eigenschaft "Filter" (F1)
DefaultExt ist die Standarderweiterung die angehangen wird wenn kein Filter ausgewählt oder wenn er nicht geändert wurde

@chef:
Zitat:
Erweiterungen mit mehr als drei Zeichen werden nicht unterstützt. Geben Sie die Erweiterung ohne den Punkt an, der den Dateinamen von der Erweiterung trennt.
:wink: (wer lesen kann ist klar im Vorteil *g*)

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 01.09.04 20:58 
Ich bezweifle ja nicht, dass es so in der Hilfe steht. Hab ja nur festgestellt, dass es mit Punkt auch funktioniert. :cool:
Ich weise hier ausdrücklich darauf hin, dass aufgrund der fehlenden Legitimierung diese Variante nicht angewandt werden sollte. ;-)

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 01.09.04 21:24 
Zitat:
Ich weise hier ausdrücklich darauf hin, dass aufgrund der fehlenden Legitimierung diese Variante nicht angewandt werden sollte.
und weil zum Bleistift sowas rauskommt: Testdatei..ini (da er ja denkt es ist noch kein Punkt dran) -> also ohne Punkt, wie du schon sagtest :wink:

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mi 01.09.04 21:40 
Macht hier aber keine zwei Punkte ...

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
ptronick Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 22

win xp prof.
D5 Stand
BeitragVerfasst: Mi 01.09.04 21:50 
Nicht dass ihr das Gefühl habt, ich würde euch als F1-Ersatz missbrauchen. Ich sitze seid ca. 4 Stunden an dieser Lapalie.
Ich bemühe mich schon, möglichst wenig zu fragen. Nur nach ner Weile frustet man halt, vor allem bei den Zigarrettenpreisen heute... ;) .

Trotzdem vielen Dank!

Ich geh jetzt schlafen. Gute Nacht noch :)
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 01.09.04 21:51 
Zitat:
Macht hier aber keine zwei Punkte ...
bei mir schon

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)