Re: sizeGroup in a table...

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

 



Hi,
you may need to create a separate set of scrollbars and then attachthem to the GtkScrolledWindow.
I would do it like this:1. disable GtkScrolledWindow's scrollbars withgtk_scrolled_window_set_policy( swindow, GTK_POLICY_NEVER,GTK_POLICY_NEVER )2. create separate set of scrollbars with hscroll =gtk_hscrollbar_new( gtk_scrolled_window_get_hadjustment( swindow ) )and vscroll = gtk_vscrollbar_new( gtk_scrolled_window_get_vadjustment(swindow ) )3. pack those two in separate compartment inside table/box
After that your size group should function properly.

2008/11/17  <z.pekar@xxxxxxxxx>:> On Mon, Nov 17, 2008 at 6:55 PM, Tristan Van Berkom> <tristan.van.berkom@xxxxxxxxx> wrote:>> On Mon, Nov 17, 2008 at 10:59 AM,  <z.pekar@xxxxxxxxx> wrote:>>> Hi,>>> I have problems packing widgets into a table using sizeGroup. Here I>>> try to pack 2 gtkRulers around a scrolled window, so that rulers cover>>> only scrolled window's container and not the scrollbars (like in>>> gimp), I try to achieve this by putting rulers in the same sizeGroup>>> with scrolled window's container. But it doesn't seem to work ->>> instead rulers "cover" also the scrollbars :( what do I do wrong?>>>> Size groups group widgets together so that they all request the>> same size, they cannot break the rules of container packing positions.>>>> I didnt look at your ui code, but you need your scroll bars to be in>> different table columns than your rulers and scrolled windows.>> I have a 3x3 table> the vertical ruler is in the column 0-1, the horz. ruler is in columnt> 1-2, and the scrolled window got 2 columns - 1-3... so there is space> of the third column for the vert. scrollbar...> and how can I separate scrollbars from scrolled window - its one widget?>> thank you> Zeev> _______________________________________________> gtk-list mailing list> gtk-list@xxxxxxxxx> http://mail.gnome.org/mailman/listinfo/gtk-list>


-- Tadej Borovšaktadeboro@xxxxxxxxxxxxxxxxxxxxxxx@gmail.com_______________________________________________gtk-list mailing listgtk-list@xxxxxxxxxxxxx://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux