Autor Beitrag
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Mo 12.05.03 14:29 
hi

Gibt es irgendwie sowas, oder lässt sich sowas selebr amchen. Einen Opendialog, wo man ausschließlich ordner markeiren kann???

thÄnxX

fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.05.03 14:48 
Suche in: Delphi-Forum, Delphi-Library SELECTDIRECTORY -> Delphi-Hilfe
Suche in: Delphi-Forum, Delphi-Library SHBROWSEFORFOLDER -> Win32API-SDK, PSDK, MSDN
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 12.05.03 15:45 

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 12.05.03 15:49 
Wie wäre es wenn du den Filter auf
gasjghuioasdghs.gsaduhgasoiufjasuioghamsigusadsa
stellst, oder aus sonstwas schwer mögliches.
Dann werden nur Verzeichnisse angezeigt.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 12.05.03 16:01 
das was ich gepostet hab, zaubert dir so einen dialog in dem nur ein verzeichnisbaum dargestellt wird.

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 12.05.03 16:23 
Warum extra Code einbauen wenn das so viel einfacher geht...halt etwas unsauberer.
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.05.03 16:28 
@Onz: Weil Du mit der Form der Programmierung bei einigen Softwarehäusern nicht eingestellt werden würdest *g*

_________________
Ha! Es compiliert! Wir können ausliefern!
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 12.05.03 16:30 
Das ist mir klar. Aber für den alltäglichen Gebrauch ist die Methode viel einfacher!
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.05.03 16:32 
Schon. Und jetzt arbeite damit mal in Arbeitsgruppen und jemand anders muss durch Deinen Quellcode durchsteigen.

Musst Dir jetzt mal vorstellen, dass hier ja viele Hobby-Programmierer sind, die das später mal als Beruf machen wollen. Von dem her ist es immer besser, sich gleich einen richtigen Stil zu anzueignen...

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 12.05.03 16:44 
Ok, gebe mich geschlagen. Hast ja Recht.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 12.05.03 18:57 
und wenn du nen opendialog missbrauchst um nen ordner auszuwählen, dann rollen sich bei mir die fußnägel auf !

bitte bitte bitte mach sowas NIE in einem von deinen Proggis !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 12.05.03 19:20 
Noch nie gemacht.

PS: Wenn deine Fußnägel so lang sind, würd ich sie mal schneiden ;)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 12.05.03 20:12 
Onz hat folgendes geschrieben:
Wie wäre es wenn du den Filter auf
gasjghuioasdghs.gsaduhgasoiufjasuioghamsigusadsa
stellst, oder aus sonstwas schwer mögliches.
Dann werden nur Verzeichnisse angezeigt.

*Grusel.*
Solltest du das beruflich machen, könntest du in meiner Firma gleich deine Kündigung in den Filter schreiben.
Wie Mathias schon geschrieben hat, gibt zwei saubere Lösungen für das Problem, wo von eine nicht schwerer zu implementiern ist, wie der OpenDialog.
Es gibt also keinerlei Grund einen OpenDialog zu mißbrauchen. Zu dem würde es den Benutzer nur verwirren, wenn er einen Dateiöffnen-Dialog sieht, obwohl er ein Verzeichnis auswählen soll.
Und die Begründung, dass es ja nur ein Hobby-Programmierer ist und es mit dem OpenDialog einfacher ist, ist einfach Käse. Auch hObby-Programmierer solltes es gleich vernünftig und richtig machen.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 12.05.03 20:17 
Okok, gebe mich geschlagen. Ich hätte es auch sauber gemacht, war halt ne spontane Idee.... :oops:
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Di 13.05.03 10:04 
Einen hab ich noch:

Es gibt, glaub ich, bei den RX-Komponenten eine DirectoryEditBox, die so einen Dialog bereitstellt.

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
fcg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Di 13.05.03 19:45 
danke für die Tipps :)

@matze: deine Idde war doch dann für mich die beste die ich nun verwende.

fcg

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 13.05.03 19:51 
Hallo,

hab einen neuen FAQ Beitrag gepostet: ...einen Verzeichnisauswahl-Dialog anzeigen?

Gruß
Tino