Autor Beitrag
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.03.05 16:35 
Hallo, have mir diesen thread angesehen:
www.delphi-forum.de/...t=ordner+ausw%E4hlen
Da kommt vor wie ich einen FolderDialog öffne.:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm1.Button2Click(Sender: TObject);
var fb : TFolderBrowser;
begin
fb := TFolderBrowser.Create;
  try
    fb.showFiles := True;
    fb.newFolder := True;
    fb.initFolder := 'c:\vorauswahl\';
    fb.caption := 'Bitte wählen Sie einen Ordner aus!';
    if fb.execute then ShowMessage(fb.selected);
  finally
    fb.Free;
end;
Hab auch die Uses angepass.
Jedoch kommt immer noch die Fehlermeldung:
Undefinierter bezeichenr:TFolderBrowser;
Was muss ich denn anders machen?
Habe Delphi 7, oder gibts ne andere möglichkeit die nicht sehr kompliziert ist?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Sa 05.03.05 16:41 
du musst den code aus dem von dir geposteten link als pas datei speichern (natürlich oben noch einen unit-namen vergeben)

die pas datei kopierst du in deinen projektordner und fügst einen verweis darauf in der uses clause hinzu.

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.03.05 16:44 
sorry, das kapier ich nicht so ganz, was meinst du genau?

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Sa 05.03.05 16:48 
bei dem link ist die unit, welche TFolderBrowser beinhaltet,als source gepostet.
man kopiere den source, füge ihn in eine leere delphi-unit ein und speichere sie in dem ordner deines programmes (das projekt wo die kompo verwenden soll)

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Sa 05.03.05 16:50 
Habs rausgefunden, danke!!!

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?