From: Mathieu Bouchard Date: 2002-02-05T21:54:47+09:00 Subject: Re: Progress with Ruby/Tk On Tue, 5 Feb 2002, Peter Hickman wrote: > Thanks for all the help and pointers that people have given me, as you > can see from my previous post things are going well. But now we have a > much harder one. > This is a dialog box rendered in glorious ASCII, monospaced font a must. > > [dialog box with horiz packing of 3 buttons] > > What I want is. > > [dialog box with vertic packing of 3 buttons] > I've noticed a message_config key as part of the TkDialog hash but can't > see how to use it. > Can I modify a dialog to look like this or am I looking to create a > whole new widget? tkdialog.rb uses dialog.tcl which has hardcoded horiz packing. if you want to do things a different way, you probably need to recode the dialog. Unless you want to change all dialogs... then you could dig for dialog.tcl and change: grid $w.button$i -in $w.bot -column $i -row 0 -sticky ew -padx 10 grid columnconfigure $w.bot $i ... grid columnconfigure $w.bot $i -minsize [expr {59 + 20}] to: grid $w.button$i -in $w.bot -column 0 -row $i -sticky ew -padx 10 grid rowconfigure $w.bot $i ... grid rowconfigure $w.bot $i -minsize [expr {59 + 20}] (or something.) ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju