ocornut / imgui

Dear ImGui: Bloat-free Graphical User interface for C++ with minimal dependencies
MIT License
59.37k stars 10.11k forks source link

Ribbon #2777

Open JoeHsiao opened 5 years ago

JoeHsiao commented 5 years ago

I am looking for a way to create ribbon, something like image

Ribbon is probably a Windows thing. According to Microsoft, it's a "a command bar that organizes a program's features into a series of tabs at the top of a window." It is also a replacement for both the traditional menu bar and toolbars.

Anything idea, or if someone can point me where to look at to customize one using existing widgets, is greatly appreciated.

v71 commented 5 years ago

Ribbon hasn't always had luck being used in windows app, are you sure you want something like that ? i think it has been also removed from modern mfc

JoeHsiao commented 5 years ago

Ribbon is not required, it's the first thing comes to my mind for a placeholder for icons of shortcuts. An example of toolbar is also fine, but I may need a way to manage the icons when they grow in numbers later.

KonstantinVeljanovski commented 5 years ago

You can create a window that takes up the whole screen with two child windows:

That's all I can help with. Check out the discord server to see if there is anyone else that can provide a better solution.

Fedr commented 1 year ago

There are some open-source implementations of Ribbon-like interface using Dear ImGui, for example in MeshLib. It looks as follows. Light mode: image Dark mode: image