ComponentOne Menus and Toolbars for WinForms
Menus and Toolbars Overview / Unique Objects Among Menus and Toolbars / ToolBar Control
In This Topic
    ToolBar Control
    In This Topic

    The C1ToolBar control is used on forms as a toolbar. When you place this object on your form, like the C1MainMenu, a C1CommandHolder will automatically appear in the component tray. The C1CommandHolder stores all of the command links as a single collection. The command links represent menu items on the main menu bar whereas the command links for C1ToolBar represent buttons on the toolbar.

    Once the component C1ToolBar is added to the form, the Link to Command designer allows you to set up the toolbar system. C1ToolBar and C1MainMenu both use the same Link to Command designer. For more information about the interface for the Link to Command designer, see Link to Command Designer.

    The C1ToolBar provides two different types of toolbars: a default toolbar and a drop-down style toolbar. The toolbar buttons provide drop-down buttons for a drop-down menu. The buttons can be arranged vertically or horizontally on the toolbar depending on the orientation of the toolbar.

    For more information on how to use the C1ToolBar control to do specific tasks such as wrapping text in the toolbar button, see ToolBar Tasks.

    See Also