Grasshopper

algorithmic modeling for Rhino

To David and the Development team,

I don't know if this is of interest but I've noticed an odd behavior with the boolean button when used in conjunction with a MessageBox.Show.

The toggle unfortunately doesn't revert to a false state until the window focus comes back to the GH canvas - which is delayed when ever a system window is triggered. This wouldn't normally be an issue but that the button is being used to trigger a process and if warnings are generated for users the button won't return to off.

I don't know if this is a behavior that you know of a work around for but if you do I would be grateful. I've tried various caching methods to no avail.

Views: 555

Replies to This Discussion

Hi,

a normal message box will always block your main.

Be aware of: Test_Form.ShowDialog(); // <--- focus is on Test_Form

And:

Test_Form Test_Form = new Test_Form(this); // Declare new instance...
Test_Form.Show(this);  // <--- Test_form wont block Main...

Thanks Raul!

As Raul said, modal windows hog all events so the button never gets to see the mouseup. The button can probably be improved a bit on my end, on your end you can choose to use modeless means of feedback, or only show the modal messages some time after the button press.

David - thanks for this.

btw: I think it would be a beneficial improvement to make for a future version.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service