Opened 4 years ago

Last modified 4 years ago

#16464 new enhancement

[InterfaceKit] Put truncated items into a ">>" menu at the end of a bar

Reported by: bitigchi Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/Interface Kit Version: R1/beta2
Keywords: ux, menubar, toolbar, ui Cc:
Blocked By: Blocking: #16465
Platform: All

Description

Valid for menubars and toolbars.

If a window is resized to a smaller size that doesn't give space to all toolbar and menubar items, they just disappear. What should happen is, truncated items should automatically be placed in a ">>" menu for easy access.

Change History (5)

comment:1 by pulkomandy, 4 years ago

Are there applications where this happen? In some cases we could just not allow the window to be resized this small, I think.

comment:2 by bitigchi, 4 years ago

Koder, Vim, Pe...

For the minimum size thing, truncation is happening at viable window sizes as well, maybe a smaller window is needed for taking notes at side etc. But there has to be a limit, at the moment you can resize the windows back to a dark hole.

Aside from that, all modern toolkits support this feature, it's simply not complete without it.

comment:3 by bitigchi, 4 years ago

Blocking: 16465 added

comment:4 by bitigchi, 4 years ago

Another idea is that, if a toolbar is marked, say, ".fixedSize()", minimum window size cannot be less than the dimensions of the bar. It might be useful in some applications.

comment:5 by jscipione, 4 years ago

There is a class in Deskbar called TInlineScrollView to scroll a BMenuBar that could be repurposed for this. It adds little left and right arrows to the end of the menu bar so that you can scroll back and forth, the mouse wheel works too. Open a lot of apps to see rhis in action. It’s easier to trigger with a bigger icon size setting. It works for both vertical and horizontal menu bars. It could easily work with BToolBar too.

Note: See TracTickets for help on using tickets.