On Sun, Feb 19, 2012 at 04:26:37PM -0700, Michael Torrie wrote: > Date: Sun, 19 Feb 2012 16:26:37 -0700 > From: Michael Torrie <torr...@gmail.com> > Subject: Re: "HELP/About" was :: [Re: suggestions on user config?] > CC: gtk-app-devel-list@gnome.org > > On 02/19/2012 02:25 PM, Gary Kline wrote: > > i've been looking for code to learn from. i spotted this botton > > layout from the game 'Iagno' but could only find part of its source. > > lucky for me that i know c++. be nice if there were some macro like > > "GTK_BUTTONBOX_LEFT"! > > GtkButtonBox is just a special type of layout widget that keeps the > buttons all the same size. You can adjust it to put all the buttons to > the right, left, center, or evenly across the dialog box. Or you can > use a regular hbox, set the padding and margins the way you want, and > use gtk_box_pack_start() to put them towards the left, and > gtk_box_pack_end() to put them towards the right. And if set the > HOMOGENEOUS property, they will all be the same size. > > I suggest you run glade-3 and just play with the layouts to get a feel > for how you can use layouts to accomplish what you want. You can drag > and drop the layouts, put layouts in layouts, and drop buttons and > things in to see how they space out, etc. > http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html, particularly > part 7 that talks about packing and layout. > > You might even want to use glade to develop your GUIs and then use > GtkBuilder to build them in your program without using code (it is > easier once you figure out how it works). Building GUIs with code is > still okay, but for large programs it's just too much of a pain! >
the thing is that i'm almost done with the program. well, modulo the options that the user has to set. i should have that worked out pretty soon. the only thing in "File" is "Want to Save" and "Quit". with these dialogs in Help, it is just a matter of how nice i want things to look; very nice or somewhat clumsy. --regarding the buttons, i figured that out about an hour ago except the buttons are on different levels. i'll check out gtkbuttonbox and more. just not now; time for a break:) > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Voice By Computer (for Universal Access): http:/www.thought.org/vbc The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list