Hey Developers,
is there a way to programmatically set the panel width both in the docked/undocked state? In my plugin, I’d like to implement a toggle between a ‘Compact’ and ‘Expanded’ mode.
Rhinocommon or c++ sdk are both fine.
Hey Developers,
is there a way to programmatically set the panel width both in the docked/undocked state? In my plugin, I’d like to implement a toggle between a ‘Compact’ and ‘Expanded’ mode.
Rhinocommon or c++ sdk are both fine.
This is not possible in 8 or 9, it is up to the user to set this.
In Rhino 8 there is a button on the bottom right that allows for this, but it may not be quite what you’re attempting to do.
Thanks @CallumSykes,
not the answer I was hoping for, but good to know. If you’re referring to this button, then it kind of does the opposite of what I need.
My UI is responsive and adapts to the width of the panel. I’d like to add a toggle, where users can switch between these modes:
I see the idea
and it seems like a reasonable request. But, I’m not sure that developers should be able to override the size that a user chose for a panel.
Couldn’t you make your own layer panel?
This is my own custom panel and it works when users manually resize it. But I’d like to make their lives simpler ![]()
Very pretty!
Going live soon ![]()
Impossible is nothing ![]()