topblast / gwen-dotnet

Automatically exported from code.google.com/p/gwen-dotnet
0 stars 0 forks source link

Button clicks do not register when clicking on image set by Button.SetImage #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Basic code:
  Button button = new Button(DisplayCanvas);
  button.SetImage("images/control_play_blue.png");

What is the expected output?
Clicking anywhere within the boundaries of the button should trigger the 
Button.Clicked event. Instead, when clicking on the image the event does not 
trigger.

What version of the product are you using? On what operating system?
Using the latest version of Gwen and the SFML.net 2.1 32bit binaries provided 
on the SFML site. Win7 x64. Compiled on VS2010 SP1 for x86.

Original issue reported on code.google.com by dylan.w...@gmail.com on 7 Sep 2013 at 7:08

GoogleCodeExporter commented 9 years ago
can be corrected by adding "m_Image.MouseInputEnabled = false;" at the end of 
the SetImage(...) function located in "Gwen/Control/Button.cs"

Original comment by uben...@gmail.com on 9 Apr 2015 at 10:34