How to create a side panel

Dale,

I generated a new id as per your instructions, but now when I run the plugin nothing appears…

Dale,

I updated my code with all the changes you informed me.
If possible, analyze it to give me some direction to be able to show my Dock Panel when I load and run the plugin…

Thanks

Hi @Luciano_Luiz_da_Silv,

Have you registered your tabbed dockbar?

Have you a command that will show the tabbed dockbar?

– Dale

Dale,

In the image above there are two codes:
The one on the left is your SampleDockBarDialog that is working and loads the Dock Bar…
The one on the right is my TestDockBarDialog, I added this to register it, but now when I run it, Rhino crashes…

image

Hi @Luciano_Luiz_da_Silv,

Attached is a sample Rhino 7 C++ plug-in project for you to carefully review.

image

TestDockBar.zip (35.7 KB)

– Dale

Dale,

Thank you very much for your help.
I will analyze and correct my code based on yours…

Luciano

Dale,

My Dock Bar is working…
Thank you very much for all the helpful posts…

image

1 Like

Dale,

The next step after creating the Dock Bar is how do I make it automatically adjust its contents when I dock it to the side?

Hi Dale,

One more question, I have a plugin with this Dialog…
image

I would like to turn this Dialog into a Side Panel, Is this possible?

Luciano

Dialog class that inherit from CRhinoUiDialog, which CRhinoTabbedDockBarDialog does, have access to it’s public CRhinoUiDialogItemResizer member. Use this helper class to setup resizing constraints in your dialog’s OnInitDialog overrride.

Here is an example:

– Dale

Sure, just make the class inherit from CRhinoTabbedDockBarDialog.

– Dale

Dale,
I managed to transform the DialogBox into a Dock Bar.
image

But when I click the “EXIT” button it only closes a part, I would like it to close everything. It is possible?

image

Hi @Luciano_Luiz_da_Silv,

To show and hide your dockbar, use CRhinoTabbedDockBarDialog::ShowDockbarTab.

– Dale