On Sat, 2003-06-21 at 19:19, Alan Horkan wrote: > On Sun, 22 Jun 2003, Reinout van Schouwen wrote: > > > Date: Sun, 22 Jun 2003 00:29:19 +0200 (CEST) > > From: Reinout van Schouwen <reinout cs vu nl> > > To: John Levon <levon movementarian org> > > Cc: usability gnome org > > Subject: Re: [Usability] Drag handles for dialogs and other windows > > > > > > Hi John, > > > > On Sat, 21 Jun 2003, John Levon wrote: > > > > > > of a dialog that important? Shouldn't the dialog just be designed not to > > > > need resizing? > > > > > > How do you do that when the dialog contains a list box or similar ? > > > > If the dialog contains a listbox, it should: > > what you really want is something much more complicated to develop but far > more usable. > > say you have a dialog with three items > the middle of which is a listbox > > you probably want the other two items to stay fixed but for the listbox to > reflow to fit the aviable space. > > If have forgotten too much Java AWT layout but an evne simpler example is > in HTML where you can specify frame (and tables i think) rows like so > rows=100,*,100 Doing this in GTK+ is simply a matter of: dialog = gtk_dialog_new (); vbox = gtk_vbox_new (FALSE, 0); gtk_container_add (GTK_DIALOG (dialog)->vbox, vbox); gtk_widget_show (vbox); item1 = whatever_new (); gtk_box_pack_start (GTK_BOX (vbox), item1, FALSE, FALSE, 0); gtk_widget_show (item1); scrwin = gtk_scrolled_window_new (NULL, NULL); gtk_container_add (GTK_CONTAINER (vbox), scrwin); gtk_widget_show (scrwin); listbox = gtk_tree_view_new (); /* Do tree view setup here */ gtk_container_add (GTK_CONTAINER (scrwin), listbox); gtk_widget_show (listbox); item3 = whatever_else_new (); gtk_box_pack_start (GTK_BOX (vbox), item3, FALSE, FALSE, 0); gtk_widget_show (item3); gtk_window_present (GTK_WINDOW (dialog)); -- Peace, Jim Cape http://ignore-your.tv "It is literally true that, like Christianity, Socialism has conquered the world by defeating itself." -- Alexander Berkman, ABC of Anarchism
Attachment:
signature.asc
Description: This is a digitally signed message part