1przeglądarka

0

witam
moje pytanie brzmi: jak zmusić program w delphi7 aby w oknie przeglądarki ( programowej )otwierał podany adres

0

<font color="darkblue">Navigates to a resource identified by a path name or URL.

procedure Navigate(const URL: WideString); overload;
procedure Navigate(const URL: WideString; var Flags: OleVariant); overload;
procedure Navigate(const URL: WideString; var Flags: OleVariant; var TargetFrameName: OleVariant); overload;
procedure Navigate(const URL: WideString; var Flags: OleVariant; var TargetFrameName: OleVariant; var PostData: OleVariant); overload;

procedure Navigate(const URL: WideString; var Flags: OleVariant; var TargetFrameName: OleVariant; var PostData: OleVariant; var Headers: OleVariant); overload;

Description

Use Navigate to locate and download a specific resource. Navigate can send an HTTP message to a specified URL and display the results or simply display the results of a specified file.

URL specifies the UNC path name of a file or the Uniform Resource Locator of an Internet resource that the Web browser should display.</span>

0

Ooooo stary jest o tym w FAQ ale nie bede taki, i wrazie jak bys nie skapowal wyjasnienia DETOX -a (co chyba jest nie mozliwe)

Np.:
procedure TForm1.Button1Click(Sender: TObject);
begin
Webbrowser.Navigate('ades strony np. www.wp.pl');
end;

0

A może przez "Programowej" rozumiesz Internet Explorera? W takim wypadku:

ShellExecute(GetDesktopWindow, 'Open', 'http://www.ChatQlient.prv.pl/', 
'', '', sw_shownormal);

Mozna tez przez WinExec, kiedys uzywalem, ale nie zawsze działa. Minus ShellExecute jest taki, ze potrafi "ukrasc" okno przegladarki, tzn. otworzyc w juz istniejacym zamiast w nowym. WinExec zaś jak juz mowilem przestalo mi dzialac -

1 użytkowników online, w tym zalogowanych: 0, gości: 1