Date: Mon, 6 Oct 2003 16:06:44 +0100 To: lablgtk at kaba.or.jp Subject: Commonly annoying things about lablgtk/gtk Message-ID: <20031006150644.GB17693 at redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline From: Richard Jones Although I've been using lablgtk for quite a while, I still haven't got my head round the difference between vbox#pack and vbox#add, and the ~expand and ~fill arguments to #pack. It all appears to be fairly random, and I spend much time trying a combinatorial range of variations to get the effects I want. Is there any coherent documentation on this subject? For example, at the moment I'm trying to write an application which uses an embedded Mozilla widget. I have to pack the toolbar, URL, mozilla and statusbar into a vbox (using, presumably, #pack). In spite of the fact that I'm using *precisely* the same packing order, arguments, etc. as the `gmmm' program shown earlier, the browser doesn't render itself at all in my new program unless I explicitly force it to resize using #misc#set_size_request. This sucks, not just the fact that it doesn't resize itself properly, but the fact that #pack behaves differently in two programs which are nearly identical. Also, this must be a common question, but how on earth do I get labels to justify themselves left or right in a table? eg. I want this simple effect: Label 1: [ entry field 1 ] Long label 2: [ entry field 2 ] But try as I might the labels (and indeed entry fields) always centre themselves. Also, how can I change the background colour of a label? Make it bold? Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. NET::FTPSERVER is a full-featured, secure, configurable, database-backed FTP server written in Perl: http://www.annexia.org/freeware/netftpserver/