Control.EndMove & Control.EndResize Events - Enhancement #2550

0
0

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.

  • You must to post comments
0
0

Hi Neil,

this issue is fixed in our latest Wisej development build (2.2.45).

Best regards
Frank

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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.

  • Neil Hoskins
    Thanks Luca, so I’m not going mad! Phew. If the Label text set by the user is blank, I have to set it to a space and position it left for a resize event not to be fired (the EndSize event is a much better solution for me). Looking forward to a fix.
  • You must to post comments
0
0

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).

  • You must to post comments
0
0

Hi Neil,

What version of Wisej and controls are you using? Any chance for a small sample?

TIA,

Levie

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.