S
S
Spheniscidae2021-08-08 21:32:54
GTK+
Spheniscidae, 2021-08-08 21:32:54

Is there a way to create side menus (with one but) in gtk4?

You need to create a vertical menu with buttons (widget), which will be fixed to the left in window A , to the
right of it, a widget (for example , GLArea ) , which will change its size depending on the window ( GTK_ALIGN_FILL ) on the right GTK_ALIGN_FILL - didn't give any result The homogeneous property also doesn't fit Another option I came up with using the horizontal GtkPaned , everything is ok, but it was necessary to somehow block the separator (at the same time it would look like a decorative strip), I didn't understand how to do it and scored on this option







Googled, searched, wondered - to no avail
. Are there adequate and non-crutch ways to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Spheniscidae, 2021-08-09
@Spheniscidae

I found the answer myself.
It turns out that in gtk4 this was changed a little
. Now you need to specify hexpand / vexpand
for widgets yourself. In my case, it turned out through a regular horizontal GtkBox , and set heexpand to TRUE for the widget on the right and everything worked as it should

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question