svipxu / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

GEWebBrowser double click event #80

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.geWebBrowser1.AddEventListener(ge.getWindow(), "dblclick");
2.in geWebBrowser1_KmlEvent, i added this command into the case "dblclick" 
MessageBox.Show("dblclick");
3.run example & double click on browser
4.browser stop response for a time & be flushed

I expect that the messagebox occurs immediately after double click & the 
browser show google map seamlessly but it doesn't response for a time & become 
white all - all the map disappear.

I'm using geplugin in testapplication_3 on win 7 64bit.

Original issue reported on code.google.com by dungta28...@gmail.com on 21 May 2012 at 10:03

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

Yes this is because of the MessageBox blocking the UI thread. MessageBoxs are 
modal and can cause issues with the plugin when used like that.

If you wish to show a message/alert as the result of clicking on an api object 
you should use a non-blocking method. Something like Trace or Debug would work 
well in visual studio, or you could output to a textbox, label, etc if it is 
part of your application.

Finally you could always display the message in an overlay, balloon or other 
api feature.

Anyhow, this is not something to fix - it is just how the MessasgeBox works.

Thanks,

Fraser

Original comment by fraser.c...@gmail.com on 4 Sep 2012 at 12:46