Autor Beitrag
superchatti
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Sa 31.05.03 11:48 
Also!

Mein Problem ist folgendes: ich habe diesen Code eingegeben:
ausblenden Delphi-Quelltext
1:
htmlLite1.LoadFromFile('main.htm');					

Diese funktion ist in Form.Create!

Wen ich das Programm starte passiert jedoch nichts!

_________________
mfG Superchatti
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 31.05.03 20:21 
Du musst den Code in FormShow setzen, da bei FormCreate das Teil noch nicht geladen ist.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 31.05.03 21:21 
Das hhalte ich aber für ein ganz schlimmes Gerücht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormCreate(Sender: TObject);
begin
  memo1.Lines.LoadFromFile('c:\boot.ini');
end;

Was ist den überhaupt htmlLite1 für ein Objekt?
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Sa 31.05.03 21:22 
Das ist ein Gerücht, mir ist das mit vielen Exterenen Komponenten schon passiert. :shock:
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: So 01.06.03 20:56 
Hallo,

tHTMLLite ist eine sehr schöne HTML-Viewer Komponente.
Ich habe zwar noch nichts beim Start in diese geladen, würde aber empfehlen es mal so zu versuchen:
ausblenden Delphi-Quelltext
1:
htmlLite1.LoadFromFile(ExtractFilePath(ParamStr(0)) + 'main.htm');					


Gruß
Klabautermann

PS: Die Komponete bekommt man unter www.pbear.com .