Skip to content
Advertisement

gtkmm, how to set a tool bar?

I want to have my toolbar at the top of the window, not vertically expanding and I want the entry to expand horizontally. Here a code :

main.cc

JavaScript

I don’t understand what is the difference between expand and fill, there are two functions, set_hexpand() and set_vexpand() whatever I tried (the last two hours) with these functions I always get the same result as with code above.

Advertisement

Answer

1.- For X1, set expand to false.
2.- Make your toolitem also expandable.
3.- Add a expander to X1.

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement