AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Problem with TEmbeddedWB
Thema durchsuchen
Ansicht
Themen-Optionen

Problem with TEmbeddedWB

Ein Thema von alpha1 · begonnen am 22. Mai 2006 · letzter Beitrag vom 22. Mai 2006
 
Klaus01
Online

Registriert seit: 30. Nov 2005
Ort: München
5.782 Beiträge
 
Delphi 10.4 Sydney
 
#6

Re: Problem with TEmbeddedWB

  Alt 22. Mai 2006, 18:36
Sorry it' me again:

maybe there is problem with your inifile

[Options]
LoadPictures =1
means it will load the pictures

[Options]
LoadPictures =0
means it will not load the pictures

the following code works for me.

Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, OleCtrls, SHDocVw, EmbeddedWB, inifiles;

type
  TForm1 = class(TForm)
    EmbeddedWB1: TEmbeddedWB;
    Button1: TButton;
    CheckBox1: TCheckBox;
    procedure Button1Click(Sender: TObject);
  private
     procedure ReadWBOptions(ABrowser:TEmbeddedWB);
    { Private declarations }
  public

    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.ReadWBOptions(ABrowser:TEmbeddedWB);
var
  ini : TiniFile;
begin
  Ini := TIniFile.Create(ExtractFilePath(Paramstr(0)) + 'data.ini');

  if Ini.ReadBool('Options', 'LoadPictures', True) then
    ABrowser.DownloadOptions := [DLCTL_DLIMAGES];

  ini.free;
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
  ReadWbOptions(EmbeddedWB1);
  EmbeddedWb1.Go('www.google.de');
end;

end.
May you want to check it.

Have fun
Klaus

[edit] ini.free added [/edit]
Klaus
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 07:07 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz