Re: [gtk-list] Hinting at reasonable window sizes



>  I'm trying to write a gtk app in which I'd like a table inside a
>  scrolled window.  It works in that I've got a scrolled window that
>  contains a table -- but it's unreadable and unusable as is because
>  it seems to default to about a 40x30 pixel area inside the scrolled
>  window, and I have no idea how to change that.

gtk_widget_set_usize(scrolled_window, XSIZE, YSIZE);

>  I really don't usually want the scrollbars to be visible at all!
>  I'm putting them there in case the data in the case requires a
>  larger window than I want to put up by default, or than would fit
>  on the screen

gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window),
                               GTK_POLICY_AUTOMATIC,
                               GTK_POLICY_AUTOMATIC);
  Quartic



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