Re: gtkdialog maximum size



Thanks. I don't solved my other problem yet. I leave the problem with 
two dialog for other time. But using GtkScrolledWindow i resolved this 
problem.

Why are you saying that using a scrolled window with parts invisible is 
not user frindly?

Best regards,

Ruben


Às 11:16 de 13/09/2017, Stefan Salewski escreveu:
On Wed, 2017-09-13 at 10:59 +0100, Emmanuele Bassi wrote:
Why are you using a GtkDialog? You should be using a GtkWindow for a
complex UI.

Additionally, the size of a top-level is given by its contents,
unless
you specify a size yourself. If your UI is too big, you'll have to
arrange it differently.
For a plain Window he may use of course a GtkScrolledWindow. I am not
sure if that would work for a dialog too, but I think so.

But of course a scrolled window with parts invisible is not really user
friendly...

Ruben, what do you expect when contents do not fit onto screen? And
have you solved your other problem with the two dialogs following each
other? I have seen a long reply of somebody to your question -- did
that helped you?

Next question may be how to detect that content is too large for
screen, and how to shrink content. Maybe check allocation for window
first. And when larger than screen, maybe reduce text size, widget size
or hide some widgets.


---
Este e-mail foi verificado em termos de vírus pelo software antivírus Avast.
https://www.avast.com/antivirus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]