Hi,
I’ve built a screen designer for our application and I’m allowing users to move and size controls. I can’t get these new events to work at all and I’m reverting to LocationChanged and ClientSizeChanged. However, the latter events are fired when I add a control to my panel, move it and resize it in code.
Here’s the code I’m using to set up the events;
aCtrl.EndMove += new System.EventHandler(Control_LocationChanged); // Not Working
aCtrl.LocationChanged += new System.EventHandler(Control_LocationChanged);
aCtrl.EndResize += new System.EventHandler(Control_Resized); // Not Working
aCtrl.ClientSizeChanged += new System.EventHandler(Control_Resized);
aCtrl.GotFocus += new System.EventHandler(Control_Click);
aCtrl.Click += new System.EventHandler(Control_Click);
aCtrl.Tap += new System.EventHandler(Control_Click);
What am I doing wrong?
Neil.
Hi Neil,
What version of Wisej and controls are you using? Any chance for a small sample?
TIA,
Levie
I’ve attached a very quick project to demonstrate this. I’m using WiseJ 2.2.44 and VS2019. When you run the project you’ll see a button and a listbox; click the button to add a Textbox to the window, the listbox will show events. You should be able to move the Textbox around and resize it (right and bottom edges) – but the End events aren’t fired at all (you’ll see them in the code).
Hi Neil, it’s a bug caused by the label wrapper. The event is fired on the wrapper. If you comment out the LabelText it will work. Will log. Thanks.
Hi Neil,
this issue is logged as #2623 and a fix will be included in the next Wisej build.
Thanks for reporting it!
Best regards
Frank
Hi Neil,
this issue is fixed in our latest Wisej development build (2.2.45).
Best regards
Frank
Please login first to submit.