Re:GtkScrolledWindow/GtkViewport question



In Gtk2, there are two properties "hscrollbar-policy" and "vscrollbar-policy". If set to 
GTK_POLICY_AUTOMATIC, the The scrollbar will appear and disappear as necessary.
At 2012-03-02 11:25:22,"Michael Stegherr" <m stegherr fugro-fsi com au> wrote:
Hi all,

I have a GtkScrolledWindow inside of a dialog window.

The scrolled window is used, because the contents of it can grow
dynamically. Therefore scrollbars should be available, if the screen
space runs out.

But when the dialog pops up, it should fit the initial contents without
scrollbars. Is there a way to find out how exactly the dialog window
should be resized to be big enough for the scrollbars not to be seen?

I played around with height and width until I found the exact magic
numbers, but I'd prefer a nicer way if possible.

Hope that was halfway comprehensible and looking forward to an
answer! :)

Cheers,
  Michael

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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