I’m starting to tidy up some of the UI for our plugin. Different controls are nested within different Group Boxes that are collapsable. I would like to add the ability to adjust the plugin height depending which Group Boxes are expanded or collapsable. After looking through the documentation there is no mention of whether Group Boxes have a ValueModified event (or something similar) that can be used to run the functions to resize the dialog window.
Hi,
Unfortunately, Group Boxes don’t have a a ValueModified event, and even though they’re standard .NET controls, there is no way to access them directly from the ScriptDialog control. If there was, you could create event handlers for the .NET Control’s Resize event:
msdn.microsoft.com/en-us/library … esize.aspx
What we could do for a future release is have the AddRow, AddGroupBox, etc, functions return the control they’ve created. This way, you can have the additional functionality that you’re looking for.
Cheers,
- Ryan