From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5bddcaa4ae64b29d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-16 13:07:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: gtkada Date: 16 Sep 2002 14:09:34 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D85D17B.4050505@cnam.fr> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1032200358 15863 128.183.220.71 (16 Sep 2002 18:19:18 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 16 Sep 2002 18:19:18 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:29047 Date: 2002-09-16T18:19:18+00:00 List-Id: Adrian Knoth writes: > Preben Randhol wrote: > > >> Yes. I'd like to put emphases on this. Having those unfixed widgets give > >> you much freedom in resizing the window. On the other side you'll have > >> to use paddings if you want some space between objects. > > Yes, but you also have border width. > > I'm struggling with a scrolled_window and a Clist inside. I would like to > have a size not smaller than 80 pixels. I guess it's not really possible > except to make the parent-window that large (by default) so there are > still 80 pixels left for the scrolled_window. This is getting a little off-topic, but I'm doing similar things. I assume you are using GtkAda (not some other language binding :). I also have a Clist inside a Scrolled_Window (so I can scroll the list when it is too big). I did nothing to specify a minimum size; it seems to request enough to show one line. You should talk in terms of lines (of information), not pixels. The user may change their default font to something much larger, in which case your pixel size will be wrong. Do you want the minimum size to be more than one line? > Now it's much smaller because other stuff in the window takes so > much space. It would be nice to say: > Set_Size_At_Least(scrollwindow1, 80); If the number was lines of information, I agree that would be useful. There may be a way to do this with Gtk; I'm still new. -- -- Stephe