windrobin / winforms-geplugin-control-library

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

mouseClick event cannot be caught. #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
the code is:
   geWebBrowser1.AddEventListener(ge.getGlobe(), EventId.Click);
   geWebBrowser1.KmlEvent += (o, e) =>
   {
      // show the event data...
      MessageBox.Show(e.Data, e.Message); //KmlMouseEvent click
      MessageBox.Show(e.ApiObject.getTarget().getType()); // GEGlobe
      // remove the event
      geWebBrowser1.RemoveEventListener(ge.getGlobe(), EventId.Click);
   };
the mouseClick event cannot be caught. And when the lib version is 529, I works.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by lxqian...@gmail.com on 14 Jun 2013 at 3:14

GoogleCodeExporter commented 9 years ago
Sorry I only just saw this. I think when I updated the event methods I missed 
something...let me take a look and get back to you.

Thanks.

Original comment by fraser.c...@gmail.com on 16 Jul 2013 at 7:17

GoogleCodeExporter commented 9 years ago
This should be fixed now, I believe the mark of the web addition was causing 
some issue. 

 geWebBrowser1.AddEventListener(ge.getGlobe(), EventId.Click);
   geWebBrowser1.KmlEvent += (o, e) =>
   {
      // show the event data...
      MessageBox.Show(e.Data, e.Message); //KmlMouseEvent click
   };

Works as expected.

Original comment by fraser.c...@gmail.com on 17 Jul 2013 at 5:39