algorithmic modeling for Rhino
Hi grasshoppers,
can somebody please tell me how to correctly use the Dialogresult from a MessageBox with 'OK' and 'Cancel' buttons?
I am trying to give the user a warning he/she is about to do some delicate stuff, and then give the choise to Cancel (and return to the definition) or OK (and also return to the definition).
What I did here causes that I have to click the canvas to continue... (the button stays in 'pressed' state until I click the canvas, see attached images).
Kind regards,
Pieter
Tags:
The Button is buggy. When a press is interrupted by another event, it fails to correctly handle the mouse up event. There's nothing wrong with your code, it's the Button object.
If you're going to interrupt the UI, then I recommend using the Toggle instead of the Button.
Thank you for your explicit answer David (big sigh of releave here) It seemed to be so simple.
I tried all kinds of methods on this - again, the full headless chicken experience.
I bet you know how I can detect - and react corrispondingly - if anyone is being naughty by attaching the buggy Button component anyways... (maybe even how to un-buggy the Button (using some poetic licence), I for one came to like it a lot, untill... well... you know ;)
Anyway: thanks for clearing that up!
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by