How to get the CRhinoTabbedDockBarDialog pointer

Dale,

In Rhino cmdSampleObjectManager.cpp (https://github.com/mcneel/rhino-developer-samples), could you show how to get the CRhinoTabbedDockBarDialog pointer in the following sample? Many thanks.

XNurbs

CRhinoCommand::result CCommandSampleObjectManager::RunCommand(const CRhinoCommandContext& context)
{
  ON_UUID tabId = CSampleObjectManagerDialog::ID();

  if (context.IsInteractive())
  {
    CRhinoTabbedDockBarDialog::OpenDockbarTab(context.m_doc, tabId);
    // How to get the CRhinoTabbedDockBarDialog pointer

  }

Hi @XNurbs,

If you pull the developer samples repo, you’ll see that I added a new CSampleObjectManagerDialog::GetObjectManagerDialog function, to the sample you reference, that returns a pointer to the dialog. Basically, you want to store a pointer to the dialog when it’s created.

– Dale

Hi Dale,

I re-downloaded the samples (https://github.com/mcneel/rhino-developer-samples/), but cannot find the new CSampleObjectManagerDialog::GetObjectManagerDialog function. Where did you put it?

– Dale