@kaicihuang wrote:
I find my dockbar height is so short that User control is hidden.
I want to set it with the height of User control.
How to implement it ?//Create Dockbar protected override Rhino.PlugIns.LoadReturnCode OnLoad(ref string errorMessage) { //Create Main Dockbar { // Create our user control m_DockBarMainCtrl = new DockBarMainCtrl(); // Create our dock bar m_DockBarMainDlg = new DockBarMainDlg( DockBarMainDlg.DockBarId(), "ModuleBar", m_DockBarMainCtrl ); // Register our dock bar MRhinoDockBarManager.CreateRhinoDockBar( this, m_DockBarMainDlg, false, // Don't show yet... MRhinoUiDockBar.DockLocation.top, MRhinoUiDockBar.DockStyle.top, new Point(0, 0) ); m_DockBarMainDlg.Initialize(); MRhinoDockBarManager.ShowDockBar( DockBarMainDlg.DockBarId(), true, false ); } ... }
Posts: 1
Participants: 1