Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2014-04

Exception error window when using Gecko component

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

johan van der merwe

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.freepascal.org/pipermail/lazarus/attachments/20140420/044bf724/attachment.html>

Reply by email