Thema: Delphi Problem with TEmbeddedWB

Einzelnen Beitrag anzeigen

alpha1

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

Re: Problem with TEmbeddedWB

  Alt 22. Mai 2006, 17:21
Zitat von Klaus01:
do you have any code that will set the option to not to load
the pictures?
I can see only code that sets the options to
Maybe the option will be overwritten somewhere:

Are you shure that the inifile is o.k.
and can be found?

Good luck
Klaus
Ini file is ok...

Delphi-Quellcode:
procedure TForm1.ReadWBOptions;
begin
Ini := TIniFile.Create(ExtractFilePath(Paramstr(0)) + 'data.ini');
try
// if LoadPictures boolean true
  if Ini.ReadBool('Options', 'LoadPictures', True) = True
// then set options(set DLCTL_DLIMAGES true else DLCTL_DLIMAGES = false (by default))
   then CurrentWB.DownloadOptions := [DLCTL_DLIMAGES];
except
  CurrentWB.DownloadOptions := [DLCTL_DLIMAGES]; // if ini file not found
end;
end;
  Mit Zitat antworten Zitat