Which is the most suitable class for a popup menu?

Hi, I want to add a menubar which will:

  1. Have a sub menu which must be opened on the same bar as the menu, for example 5 buttons:
    |-------------------|
    | 1 | 2 | 3 | 4 | 5 |
    |-------------------|
    When button No. 1 is pressed it opens a sub menu with items 1a, 1b, 1c like this:
    |----------------------------------|
    | 1 | 1a | 1b | 1c | 2 | 3 | 4 | 5 |
    |----------------------------------|
  2. The sub menus are groups of toggle buttons which open a single-item popup menu with a label and a widget (spinner\combo\switch).

I’m not sure which are the best classes for this using gtkmm 4.
I guess I should use PopoverMenuBar with PopoverMenu for handling sub menus which will contain menuButtons, can the sub menu be horizontal? Maybe it will be easier to use a PopoverMenuBar and hide/show the submenu buttons instead?

In the example here: https://developer.gnome.org/gtkmm-tutorial/stable/sec-menus-examples.html.en#menu-example-main2
there’s an example of a PopoverMenuBar that contains labels. Can I add other widgets too?
Thx in advance

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.