Dock Command bar to bottom side

Hi, I would like to dock the Command bar on bottom screen side when my PlugIn is loaded.
On Rhino 6 and 7 works with this code sample:

CRhinoUiDockBar* p_dock = RhinoApp().RhinoUiDockBarManager().FindDockBar(L"Command");

if(p_dock != nullptr)
{
  ON_UUID id = p_dock->DockBarID();
   RhinoApp().RhinoUiDockBarManager().DockDockBar(id, 
   AFX_IDW_DOCKBAR_BOTTOM);
}

I noticed that in Rhino 8 not works. After a debugging I noticed this strange thing if I call these functions

bool bottom = p_dock->IsDockedBottom();
bool top = p_dock->IsDockedTop();

in Rhino 6 and 7 with the Command bar docked on top as the default of Rhinoceros I obtain bottom = false and top = true.

In Rhino 8 I obtained the reverse bottom to true and top = false also if the Command bar is on top side of my screen.
In any case my question is how to dock the Command bar in the bottom side of screen in Rhino 8 SDK.
best regards

Hi @Gabriele_Cuccolini,

I can repeat this, thanks for reporting.

https://mcneel.myjetbrains.com/youtrack/issue/RH-79831

– Dale

Hi @dale., than you very much for your quick answer.
Maybe could be helpfull for you but I made another test with this code:

CRhinoAppAppearanceSettings settings = RhinoApp().AppSettings().AppearanceSettings();
settings.m_cmdprompt_position = CRhinoAppAppearanceSettings::command_prompt_bottom;
RhinoApp().AppSettings().SetAppearanceSettings(settings);

and I obtained the same behaviour, on Rh6 and Rh7 works while in Rh8 doesn’t work and in debug I see that the value of setting.m_cmdprompt_position after the first call is undefined in Rh8 while in Rh6 and Rh7 gives me the actual position of the Command dock bar.
bye
gabriele