Autor Beitrag
Memphis D
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: So 20.04.08 17:00 
Hi Leute;
wiedermal ne Frage: Wie kann ich einen Hyperlink in ein Programm einfügen wie zum Beispiel www.google.de, wobei beim draufklicken eben Internetexplorer geöffnet wird mit eben diese Seite?

MfG
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 20.04.08 17:03 
Unter .NET: Da gibts ein LinkLabel.
Unter Windows / VCL: Nimm ein Label. Font blau und unterstrichen. Cursor := crHandPoint. Und dann der Teil für OnClick:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, nil, PChar('http://www.google.de'), nilnil, SW_SHOW);					
Memphis D Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: So 20.04.08 17:12 
Ok, danke aber es wird angezeigt das ShellExecute ein undefinierter Bezeichner ist. Woran liegt das?

MfG
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: So 20.04.08 17:12 
Unit ShellApi einbinden.

PS: Dabei wird das Programm geöffnet, das damit verknüpft ist. Wenn es unbedingt der IE sein soll, kannst du vll auch das hier verwenden:

ausblenden Delphi-Quelltext
1:
ShellExecute(Handle, nil, PChar('iexplore.exe "http://www.google.de"'), nilnil, SW_SHOW);					
Memphis D Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: So 20.04.08 17:15 
Vielen Dank für die Hilfe!

MfG