Re: Inner window size issue



Hi Gus,

Gus Koppel wrote:
Nikolaj Kiær Thygesen wrote:


        How on earth do I open a window containing a couple of widgets,
        one of which is a ScrolledWindow?? This ScrolledWindow displays
        an image, and now I'd like to fit the size of the ScrolledWindow
        to the size of the image in pixels.


I have understood it like this: you have a GtkImage inside a
GtkScrolledWindow. The GtkScrolledWindow should be just large enough to
allow the GtkImage to be entirely visible, i.e. there is no need to
scroll the GtkImage (the contents of the GtkScrolledWindow).

Pardon me, but why is there a GtkScrolledWindow at all if you apparently
intend to avoid the need of scrolling inside the bitmap (because it's
entirely visible)? Wouldn't just removing the GtkScrolledWindow and
placing the GtkImage directly into the container fulfill your demand?
>
No that wont do, I have a simillar problem here. I generate a UI for plugins. The UI consists of a scrollarbe windows with a table-layout inside. The table has label + widget per row. The number of row can be anything from 1 to say 1000. Therefore the scrollable windows is needed if the height of the window would exceed the screen height. Anyway if it does not, I'd prefer to make the window as tall as possible to show the entries without needing to scroll.

I am not be able to achive this yet.

Stefan



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