How to create a side panel

We are trying to implement the creation of a side panel by including a dialog in this panel.
What is the most correct procedure for this application?

Eto I guess?

I didn’t understand!!

Hi @Luciano_Luiz_da_Silv.

Are you writing a plug-in for Rhino? If so, what language are you writing in?

If you are not writing a plug-in for Rhino, we’ll need more details on what you want to do.

Thanks,

– Dale

Yes, I’m making a plugin. I use C++ to develop them…

What I would like is to make a plugin and when I run it, instead of opening a floating Dialog, this dialog opens as if it were a panel…

Hi @Luciano_Luiz_da_Silv,

To created a tabbed, docking dialog box, inherit your dialog class from CRhinoUiDockBarDialog.

The Rhino C++ SDK Samples on GitHub has an examples of this.

Once you’ve cloned repository, just open SamplesCpp.sln in Visual Studio and search for CRhinoUiDockBarDialog

– Dale

Thanks Dale.

I’m going to create my plugin, and if I need more instructions I’ll post my questions here…

1 Like

Hi Dale…

I can’t find CRhinoUiDockBarDialog in the project you showed.
What am I doing wrong?

In fact, I’m having difficulty creating this side panel from scratch, in a new project…

Hi @Luciano_Luiz_da_Silv,

Can you describe what problem you are having?

– Dale

Hi Dale,

Basically I’m not able to start creating the side panel, as I don’t know the initial steps to create this type of project.
I’m creating dialogs and manipulating them, but this is the first time I’ve had to create a side panel.

This is my difficulty…

Hi Dale,

One question…
If I create a simple Dialog, can I transform it into a Side Panel?

Hi Dale,

Please help me with basic information on how I can create a Dock panel…
I received your GitHub code, but I need to learn how to create it from scratch…

When I use some information according to your code I have similar errors such as the lack of some necessary files in the SDK…

Hi Dale,

How can I submit my code to make it easier to identify errors?

Hi Dale.

Can you analyze my code to look for any problems?
I still haven’t been able to create a Dock Panel from scratch, an error message always appears as if my SDK was missing something,
However, when I compare the files with the model you gave me from Git Hub it seems to be correct…

Hi @Luciano_Luiz_da_Silv,

  1. In stdafx.h, uncomment this:
// If you want to use Rhino's MFC UI classes, then
// uncomment the #define RHINO_SDK_MFC statement below. 
// Note, doing so will requrie that your plug-in is
// built with the same version of Visual Studio as was
// used to build Rhino.
#define RHINO_SDK_MFC
  1. Do not #include Rhino SDK headers in project .h and .cpp files, as they are already included in stdafx.h.

– Dale

Dale,
One more question…
When I load the plugin this message appears on the screen…
image

What’s happening?

https://drive.google.com/file/d/1XqhsqeCbilWd8qDxEUyvcOXhmBxBZK6P/view?usp=sharing

Hi @Luciano_Luiz_da_Silv,

Please review your code in CCommandTestDockBar::RunCommand.

– Dale

Hi Dale,

Now when I load the plugin appears this window…
image

But this is not my Dock Bar…

Hi @Luciano_Luiz_da_Silv,

I’m guessing you copied and pasted this GUID into your tabbed dockbar class.

This GUID must be unique. Use GUIDGEN.EXE to create a new, unique id.

– Dale