From: Kero Date: 2004-04-10T17:34:15+09:00 Subject: Re: Idea: Simplified GTK >> What's a good way to specify packing options using EzGtk style? - Or >> for that matter, alignment? Mostly came up during this >> >> vbox { >> expand false # don't expand and fill, give other widgets priority >> menubar { >> menu "File" { >> menuitem "Open" { ... } >> ... >> } >> align_right >> menu "Help" { >> ... >> } >> } >> expand true # Widgets after this get all the extra space scintilla { >> ... } >> } >> } >> Thoughts? ideas? > > I thought these options were constant for the container? I guess I'm > wrong about that? Some layout options are for the container (can only find "space between widgets" right now), others are for each of the widgets inside it (expand, fill, weight), yet others deal only with size/layout within the widget (anchor/align, border_width and (for canvases-like things only) width+height). I suggest to put the second category with the widgets itself, not in the container, which can make behaviour for things like scrollbars more natural (expand in one direction, fixed in the other). Some containers ("panes", like ScrollPane, SplitPane) behave differently when shrinking/enlarging (adding scrollbars spontaneously). Bye, Kero. -- wanna keep developing software? http://demo.ffii.org/index.php