Copy link to clipboard
Copied
I have created a panel, as per the directions in the EmptyPanel project, which is dockable (it can be placed on the right hand side as per the color, layers, etc panels).
This panel isn't relevant in all contexts and I have worked out how to disable the menu item associated with it, so I was wondering if there is a way to disable the docked button that expands it as well, as otherwise it renders disabling the menu item moot. Any advice would be great. Many thanks in advance.
I don't think you can do that. You might be able to hide the panel dock button by closing the panel somehow (not sure if that's actually doable) but I'm fairly certain that even if you could, putting it back in the same place would not be possible.
In the old ADM API there were calls to handle tab groups but to the best of my knowledge none of that has been exposed through the public API. I'm sure they exist internally though that's clearly not helpful.
Copy link to clipboard
Copied
There's no API to disable the docked button. It wouldn't make much sense because what if it wasn't docked? Your best bet is to disable the contents of the panel. That could be very easy if you're embedding an OS widget in there (just disable the widget).
Copy link to clipboard
Copied
Thanks for the response, I did wonder that. Is it possible then to remove the button and re-add, if it exists, it in the same place programatically? I found some documentation that refers to tab groups, but I can't work out how to manipulate them. If not, I will just disable the panel's contents, as per your suggestion. It would be nicer if I could remove the button as it negates disabling the menu button otherwise.
Copy link to clipboard
Copied
I don't think you can do that. You might be able to hide the panel dock button by closing the panel somehow (not sure if that's actually doable) but I'm fairly certain that even if you could, putting it back in the same place would not be possible.
In the old ADM API there were calls to handle tab groups but to the best of my knowledge none of that has been exposed through the public API. I'm sure they exist internally though that's clearly not helpful.
Copy link to clipboard
Copied
That's unfortunate, thanks for the help anyway. I had read about the ADM, a bit of a shame none of that exists anymore.