Jump to content

Event BrowserClose (MainModule)


cmsotomayor

Recommended Posts

I am testing the MainModule BrowserClose event and it works correctly when I close the browser or a browser tab that my application has, in Mozilla Firefox and Internet Explorer browsers, but not in Google Chrome (Version 80.0.3987.132 (Official Build) (64 bits)). In the case of Google Chrome apparently the event does not run. This using Unigui version 1.90.0.1520 with paid license.

Link to comment
Share on other sites

8 hours ago, cmsotomayor said:

I am testing the MainModule BrowserClose event and it works correctly when I close the browser or a browser tab that my application has, in Mozilla Firefox and Internet Explorer browsers, but not in Google Chrome (Version 80.0.3987.132 (Official Build) (64 bits)). In the case of Google Chrome apparently the event does not run. This using Unigui version 1.90.0.1520 with paid license.

Hello,

We will check it, but seems the problem is in Chrome.

Link to comment
Share on other sites

  • 2 months later...

I have the same problems. Event OnBrowserClose is not fired. Also TerminateOnBrowserClose doesn't work.
I'm using UniGUI 1.50.0.1481.

- Microsoft Internet Explorer 11.836.18362.0 -> WORK
- Microsoft Edge 83.0.478.37 -> NOT WORK
- Google Chrome 83.0.4103.61 -> NOT WORK

Link to comment
Share on other sites

2 hours ago, Bocchi said:

Is there any workaround I can use to solve this problem?

In fact, what would you like to do in this event?

You wouldn't use such code, would you?:

procedure TUniMainModule.UniGUIMainModuleBrowserClose(Sender: TObject);
begin
  raise Exception.Create('UniGUIMainModuleBrowserClose');
end;

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...