[Lazarus] Exception error window when using Gecko component

johan van der merwe johanvandermerwe.rsa at gmail.com
Sun Apr 20 16:58:55 CEST 2014


Hi All
I'm using Gecko1 componrnt in my application for mini browser.
It's works fine except when they is not network/internet connection, a
window popup with no title with two buttons (one for OK and another for
cancel).
I tried to prevent that with try..except..end; statement as above:

procedure Tfrm1.btnBrowserGoClick(Sender: TObject);
begin
  try
    GeckoBrowser.LoadURI(edtAddress.Text);
  except
     ShowMessage(ErrorComplaint + lisLineEnding + 'No Internet
Connection.');
  end;
end;


What can I do so that the window do not popup in case of no connection?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140420/044bf724/attachment-0002.html>


More information about the Lazarus mailing list