API Help
Eplan.EplApi.Gui Namespace / Toolbar Class
Members

In This Topic
    Toolbar Class
    In This Topic
    Class for modifying Toolbars.
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.Gui.Toolbar

    Syntax
    public class Toolbar 
    public ref class Toolbar 
    Remarks
    Please mind, that for creating and removing tool bars and buttons, the main frame is needed to be visible. This means, it is not possible to create a tool bar in OnInitGui() of the IEplAddin interface, when EPLAN is just starting. Please handle the Eplan.EplApi.OnMainStart event instead to create the tool bar. The First time, you load the Add-In via GUI, you should create the tool bar in OnRegister() of the IEplAddin interface. In QuietMode, no tool bars can be created. If the action of the button does not exist, button is removed automatically from custom toolbar. Toolbar without any button is removed automatically. Mind, that the tool bar is not automatically stored in the workspace.
    Public Constructors
     NameDescription
    Public ConstructorCreates a new object.  
    Top
    Public Methods
     NameDescription
    Public MethodOverloaded. add a new button to the custom toolbar  
    Public Methodcreates a user toolbar  
    Public MethodDestructor for deterministic finalization of Toolbar object.  
    Public Methodreturns true when this toolbar exists  
    Public Methodreturns the action for a button in this toolbar. When this button has a persistent button id, the buton has no Action but simple the persistent id. When this is a button added by the customer, the action is not empty.  
    Public MethodReturns the tooltip from the button  
    Public Methodreturns the count of elements of this toolbar. Toolbar can contain two kinds of elements: buttons and separators.  
    Public Methodreturns the persistent command id for a button in this toolbar. The persistent id does not change from one start of P8 to the other.  
    Public MethodRemove a button or separator of the custom toolbar  
    Public MethodRemove the complete custom toolbar  
    Public MethodSets the tooltip of the button.  
    Top
    See Also