Notifications
Clear all
[Closed] Creating Dockable UI or new Extended Viewports using .NET
Sep 04, 2023 9:54 pm
The following is an example from max’s help:
public class TestAction : CuiDockableContentAdapter
{
public override string ActionText { get { return “Test”; } }
public override string Category { get { return “CuiTest”; } }
public override Type ContentType
{
get { return typeof(TestControl);
}public override object CreateDockableContent() { return new TestControl(); } public override DockStates.Dock DockingModes { get { return DockStates.Dock.Left | DockStates.Dock.Right | DockStates.Dock.Floating | DockStates.Dock.Viewport; } }
}
It seems that many people do not understand the specific use, and neither do I. I tested and tested, and it can only dock in one window, We hope it to be like “cui.RegisterDialogBar” in the Maxscript , Turns a window into a toolbar docked in max Instead of docking the control in a window, I’m not using it properly? Hope for expert help
thank you!