I do not see coding error in your code.
Might this be a problem with the visibility of the Browser
Component.
May you can try to give the Procedure the webbrowser
as parameter.
Good Luck
Klaus
Delphi-Quellcode:
procedure TForm1.ReadWBOptions(ABrowser:TEmbeddedWB);
begin
Ini := TIniFile.Create(ExtractFilePath(Paramstr(0)) + 'data.ini');
try
if Ini.ReadBool('Options', 'LoadPictures', True) = True
then ABrowser.DownloadOptions := [DLCTL_DLIMAGES];
except
ABrowser.DownloadOptions := [DLCTL_DLIMAGES];
end;
end;