Skip to content

ToolBar items deep hierarchy #993

Closed
Closed

Description

@itg-assistant

Tiago (ITG) asked 2017-08-05 23:59:17 UTC

In WinForms we can use a tool bar like a more flexible menu bar. It's not difficult to do.

In Wise the hierarchy is quite complex and thus not easy to use.

At the first level, items of the ToolBar are ToolBarButton

  • ToolBar.Buttons = { ToolBarButton, ... }

At the second level, we must specify a ContextMenu and its items are MenuItem that will be shown

  • ToolBarButton.DropDownMenu = ContextMenu

  • ContextMenu.MenuItems = { MenuItem, ... }

From the third level on, it's just like MenuBar: MenuItem have items that are MenuItem and so on.

Is it possible to make the second level simpler? Instead of a DropDownMenu property, have a simple collection of MenuItem.

Can there be some form of inheritance between ToolBarButton and MenuItem?

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2017-08-06 00:04:54 UTC

    Yes, added as WJ-8377. I think it was done like that to be like WinForms, but adding the MenuItems collection like the Button and SplitButton already have is a good enhancement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SuggestionAn improvement to something that already works.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions