Click or drag to resize
Panels Methods

The Panels type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClosePanel(Guid)
Will close or hide the specified panel type, in Windows Rhino, if it is the only visible tab the tab dock bar will be closed as well. In Mac Rhino it will always close the modeless dialog hosting the panel.
Public methodStatic memberClosePanel(Type)
Will close or hide the specified panel type, in Windows Rhino, if it is the only visible tab the tab dock bar will be closed as well. In Mac Rhino it will always close the modeless dialog hosting the panel.
Public methodStatic memberGetOpenPanelIds
Get a list of the currently open panel tabs in Windows Rhino, on Mac Rhino it will be a list of the currently visible modeless panel dialogs.
Public methodStatic memberGetPanel
Will return an instance of a .Net panel if the panel has been displayed at least once. Panel instances are not created until a panel is displayed.
Public methodStatic memberIsPanelVisible(Guid)
Check to see if a panel is currently visible, on Windows this means you can see the tab, it does not necessarily mean it is the current tab.
Public methodStatic memberIsPanelVisible(Type)
Check to see if a panel is currently visible, on Windows this means you can see the tab, it does not necessarily mean it is the current tab.
Public methodStatic memberOnClosePanel
Call this method to raise the Closed event
Public methodStatic memberOnShowPanel
Call this method to raise the Show event
Public methodStatic memberOpenPanel(Guid)
Open the specified panel in its current or default location and if it is in a dock bar containing more than one tab, make it the current tab.
Public methodStatic memberOpenPanel(Type)
Open the specified panel in its current or default location and if it is in a dock bar containing more than one tab, make it the current tab.
Public methodStatic memberOpenPanel(Guid, Guid)
In Mac Rhino this will just call the version of OpenPanel that takes a class type Id. In Windows Rhino this will look for a dock bar with the specified Id and open or move the specified panel to that dock bar.
Public methodStatic memberOpenPanel(Guid, Type)
In Mac Rhino this will just call the version of OpenPanel that takes a class type Id. In Windows Rhino this will look for a dock bar with the specified Id and open or move the specified panel to that dock bar.
Public methodStatic memberOpenPanelAsSibling
In Mac Rhino this will currently just call OpenPanel, in Windows Rhino this will look for a dock bar which contains the sibling panel and add this panel to that dock bar as necessary, if the panel was in another dock bar it will be moved to this dock bar.
Public methodStatic memberPanelDockBar(Guid)
Will always return Guid.Emty in Mac Rhino. In Windows Rhino it will look for the dock bar which contains the specified panel class Id and return the dock bar Id.
Public methodStatic memberPanelDockBar(Type)
Will always return Guid.Emty in Mac Rhino. In Windows Rhino it will look for the dock bar which contains the specified panel class Id and return the dock bar Id.
Public methodStatic memberRegisterPanel
You typically register your panel class in your plug-in's OnLoad function. This will register your custom call with Rhino, Rhino will create an instance of your class the first time your panel is created and embed this instance of your class in a panel container.
Top
See Also