On 30-01-18 17:10, Florent wrote:
Hi
This is ly first GUI in C and i've got a "conception's problem".
I want to create a cryptographic application with a lot of widget display on the window.
I already implemented many algorithms. I've got 5 buttons on top of my application which represents the 5 cryptographic algorithm.For each of one, i want to display differents widget when i click on this button.
My first idea was to create one window (whith gtknewwindow) for each cryptographic function. Then add all my components in my differents windows.Then, i just use gtkwidgetshow ans gtkwidgethide to hide or show the window. It works but i dont think this is the good way ? Am i wrong ?
ps : i'm using GTK+3
It sounds like you are looking for GtkStack
(https://developer.gnome.org/gtk3/stable/GtkStack.html) which is like a GtkNotebook
but unlike the GtkNotbook
you have to provide your own
buttons/means of switching between the different pages.