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
 
alpha1

Registriert seit: 19. Nov 2005
40 Beiträge
 
#1

Problem with TEmbeddedWB

  Alt 22. Mai 2006, 16:17
Hello!
I have webbrowser with TEmbeddedWB component and I have one problem:
I have written procedure, which must read options for webbrowser:
Delphi-Quellcode:
procedure TForm1.ReadWBOptions;
begin
 Ini := TIniFile.Create(ExtractFilePath(Paramstr(0)) + 'data.ini');
 try
  if Ini.ReadBool('Options', 'LoadPictures', True) = True
   then CurrentWB.DownloadOptions := [DLCTL_DLIMAGES];
 except
  CurrentWB.DownloadOptions := [DLCTL_DLIMAGES];
 end;
end;
But when I add this procedure somewhere, it doesnt work (my webbrowser doesnt load pictures, when "LoadPictures' boolean is true).
When I add somewhere this code(not procedure):
Delphi-Quellcode:
 Ini := TIniFile.Create(ExtractFilePath(Paramstr(0)) + 'data.ini');
 try
  if Ini.ReadBool('Options', 'LoadPictures', True) = True
   then CurrentWB.DownloadOptions := [DLCTL_DLIMAGES];
 except
  CurrentWB.DownloadOptions := [DLCTL_DLIMAGES];
 end;
all works great...
Where is the trouble?
Thank`s!
  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 10:55 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz